Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCommand ¶
NewRootCommand is used to create a new instance of a cobra.Command. This function takes a name and version as input. It returns a command of type cobra.Command.
func NewSubCommand ¶
NewSubCommand is used to add a new sub command to a cobra.Command. This function takes a root command, name and run function as input. The run function will be invoked when the command is executed and all the flags pass validation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.