Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
func Command(cnf CommandConfig) *command.Command
Types ¶
type CommandConfig ¶
type CommandConfig struct {
Name string
Category string
Description string
Info string
HideDefaultUsage bool
WithoutLsCommand bool
WithoutGetCommand bool
WithoutSetCommand bool
WithoutAddCommand bool
WithoutRemoveCommand bool
WithoutOptsCommand bool
WithoutResetCommand bool
// Hide keys from listing. Hidden keys can still be interacted with other commands.
HideKeys []string
// Disable keys from any interactions, also hides the key from listing.
DisableKeys []string
// Secrets these values will be redacted in output
// Config cmd get also will retrun redacted
Secrets []string
// SecretsPassword is the password used to display redacted secret value with config get
SecretsPassword string
}
func DefaultCommandConfig ¶
func DefaultCommandConfig() CommandConfig
Click to show internal directories.
Click to hide internal directories.