Documentation
¶
Overview ¶
Package config provides commands for managing CLI configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigCmd ¶
type ConfigCmd struct {
List ListCmd `cmd:"" help:"List configuration values." aliases:"ls"`
Get GetCmd `cmd:"" help:"Get a configuration value."`
Set SetCmd `cmd:"" help:"Set a configuration value."`
Unset UnsetCmd `cmd:"" help:"Remove a configuration value."`
}
ConfigCmd is the root command for managing CLI configuration
type ConfigKey ¶
type ConfigKey string
ConfigKey represents a valid configuration key
func ValidateKey ¶
ValidateKey checks if a key is valid
func (ConfigKey) IsLocalOnly ¶
IsLocalOnly returns true if the key can only be set in user config
func (ConfigKey) IsUserOnly ¶
IsUserOnly returns true if the key can only be set in user config
func (ConfigKey) ValidValues ¶
ValidValues returns valid values for enum keys, or nil if any value is valid
type ListCmd ¶
Click to show internal directories.
Click to hide internal directories.