Documentation
¶
Index ¶
- func Execute(rootCmd *cobra.Command, props *p.Props)
- func NewCmdRoot(props *p.Props, subcommands ...*cobra.Command) *cobra.Command
- func NewCmdRootWithConfig(props *p.Props, configPaths []string, subcommands ...*cobra.Command) *cobra.Command
- type ConfigLoadOptions
- type FlagValues
- type OutdatedVersionOption
- type UpdateCheckResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigLoadOptions ¶
type ConfigLoadOptions struct {
CfgPaths []string
ConfigPaths []string
Props *p.Props
AllowEmpty bool
}
ConfigLoadOptions holds the options needed for loading configuration.
type FlagValues ¶
FlagValues holds the command-line flag values extracted from cobra command.
type OutdatedVersionOption ¶
type OutdatedVersionOption func(*outdatedVersionConfig)
OutdatedVersionOption configures handleOutdatedVersion behavior.
type UpdateCheckResult ¶
UpdateCheckResult holds the result of checking for updates.
Click to show internal directories.
Click to hide internal directories.