Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RootCommands is a list of subcommands for the application. RootCommands = []cli.Command{} // RootFlags is a list of flags for the application. RootFlags = []cli.Flag{ cli.BoolFlag{ Name: "debug", Usage: "add this flag to enable debug mode", }, cli.BoolFlag{ Name: "profile", Usage: "write profile information for debugging", }, } )
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func RootAction ¶
RootAction is executing when program called without any subcommand.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.