Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AlphaDisclaimer to be places at the end of description of commands in alpha release AlphaDisclaimer = ` Alpha Disclaimer: this command is currently alpha but, please try it out and give us feedback! ` // MacroCommandLongDescription provide a standard description for "macro" commands MacroCommandLongDescription = normalizer.LongDesc(` This command is not meant to be run on its own. See list of available subcommands. `) )
Functions ¶
func SubCmdRunE ¶
SubCmdRunE returns a function that handles a case where a subcommand must be specified Without this callback, if a user runs just the command without a subcommand, or with an invalid subcommand, cobra will print usage information, but still exit cleanly. We want to return an error code in these cases so that the user knows that their command was invalid.
func ValidateExactArgNumber ¶
ValidateExactArgNumber validates that the required top-level arguments are specified
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.