Documentation
¶
Index ¶
- func CreateRootCommand(version string) *cobra.Command
- func InitCompletionCmd(rootCmd *cobra.Command, cfg *config.Config) func(cfg *config.Config)
- func InitSelfCmd(rootCmd *cobra.Command, version string)
- func InitSubCommands(rootCmd *cobra.Command, conf *config.Config, showAll bool, out io.Writer)
- func PrintHelpMessage(cmd *cobra.Command) error
- func PrintRootHelpMessage(cmd *cobra.Command) error
- func PrintVersionMessage(cmd *cobra.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRootCommand ¶
CreateRootCommand used to run only root command without config.
func InitCompletionCmd ¶ added in v0.0.50
InitCompletionCmd intializes root 'completion' subcommand. config can be nil, so we adding more flags only when config is found. Returns reinit function which must be called when config is parsed.
func InitSelfCmd ¶ added in v0.0.55
InitSelfCmd intializes root 'self' subcommand.
func InitSubCommands ¶ added in v0.0.50
initialize all commands dynamically from config.
func PrintHelpMessage ¶ added in v0.0.50
func PrintRootHelpMessage ¶ added in v0.0.58
func PrintVersionMessage ¶ added in v0.0.50
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.