Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindCMDFlags ¶
BindCMDFlags binds cobra command flags with {cmd name}.{camelized flag name} format to viper it also binds {cmd name}- prefixed flags with similar fashion
Types ¶
type CLI ¶
type CLI interface { Name() string BuildInfo() *BuildInfo Color() bool Interactive() bool Viper() *viper.Viper EventBus() *eventbus.EventBus Logger() logr.Logger SetConfiguration(configuration config.Config) Configuration() config.Config IfConfirmed(message string, defaultOption bool, action func() error) error Confirm(message string, defaultOption bool) (bool, error) Input(message string, defaultValue string, opts ...survey.AskOpt) (string, error) InputPassword(message string, opts ...survey.AskOpt) (string, error) }
func FromContext ¶
Click to show internal directories.
Click to hide internal directories.