Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AvaillableCommand = []*Command{}
)
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { //Run runs the commande. //the args are the argument after the command name. Run func(cmd *Command, args []string) int //PreRun perform an operation before running the commande. PreRun func(cmd *Command, args []string) //UsageLine is the online usage message UsageLine string //Short is the short description shown in the go help output. Short string //Long is the long description shown in 'go help <this-command>' output. Long string //Flag is set of flag specifique to this command Flag flag.FlagSet // CustomFlags indicates that the command will do its own // flag parsing. CustomFlags bool // contains filtered or unexported fields }
Unit execution
func (*Command) Out ¶
Out return the out writer of the current Command if cmd.output is nil, os.Stderr is used
Click to show internal directories.
Click to hide internal directories.