Documentation
¶
Index ¶
- Constants
- Variables
- func GetConfigValue(config *appconfig.Config, key string) (string, error)
- func IsValidKey(key string) bool
- func OutputAvailableKeys(ui interface{ ... })
- func PrintAvailableKeys(ui interface{ ... })
- func SaveConfigValue(configFile string, key string, value string) error
- func SetConfigValue(config *appconfig.Config, key string, value string) error
Constants ¶
View Source
const ( KeySSOStartURL = "sso.start_url" KeySSORegion = "sso.region" KeySSORole = "sso.role" KeyAWSDefaultRegion = "aws.default_region" KeyAWSConfigFile = "aws.config_file" )
Configuration key constants
Variables ¶
View Source
var KeyDescriptions = map[string]string{ KeySSOStartURL: "Your AWS SSO start URL", KeySSORegion: "AWS region for SSO (e.g., us-east-1)", KeySSORole: "SSO role name (e.g., AdministratorAccess)", KeyAWSDefaultRegion: "Default AWS region for profiles", KeyAWSConfigFile: "Path to AWS config file", }
KeyDescriptions maps configuration keys to their descriptions
View Source
var ValidKeys = []string{ KeySSOStartURL, KeySSORegion, KeySSORole, KeyAWSDefaultRegion, KeyAWSConfigFile, }
ValidKeys contains all valid configuration keys
Functions ¶
func GetConfigValue ¶
GetConfigValue gets the value for the specified key from the config
func IsValidKey ¶
IsValidKey checks if the given key is a valid configuration key
func OutputAvailableKeys ¶
func OutputAvailableKeys(ui interface{ Output(string) })
OutputAvailableKeys prints all available configuration keys with descriptions to Output
func PrintAvailableKeys ¶
func PrintAvailableKeys(ui interface{ Error(string) })
PrintAvailableKeys prints all available configuration keys with descriptions to Error
func SaveConfigValue ¶
SaveConfigValue saves a configuration value to the configuration file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.