Documentation
¶
Overview ¶
Package cmd provides CLI implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
// Err contains error returned from the subcommand executed.
Err error
// Cmd contains the command object.
Cmd *cobra.Command
}
Response wraps error for subcommand, and is returned from cmd package.
func Execute ¶
func Execute() Response
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func (Response) IsUserError ¶
IsUserError indicates it is a user fault, and should display the command usage in addition to displaying the error itself.
Click to show internal directories.
Click to hide internal directories.