Documentation ¶
Index ¶
- func ContextExists(contextName string) bool
- func GetBool(key string) bool
- func GetContextNames() []string
- func GetCurrentContextName() string
- func GetInt(key string) int
- func GetString(key string) string
- func GetStringMapString(key string) map[string]string
- func Init(configPath string) error
- func Reset()
- func Save() error
- func Set(contextName string, key string, value any)
- func SetCurrentContext(key string, value any) error
- func SetDefault(contextName string, key string, value any)
- func SetFs(fs afero.Fs)
- func SwitchCurrentContext(contextName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextExists ¶
func GetContextNames ¶
func GetContextNames() []string
func GetCurrentContextName ¶
func GetCurrentContextName() string
GetCurrentContextName returns the name of the current context
func GetStringMapString ¶
func SetCurrentContext ¶
func SetDefault ¶
func SwitchCurrentContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.