Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Action = func(c *cli.Context) (err error) { args := c.Args() if args.Present() { return cli.ShowCommandHelp(c, args.First()) } cli.ShowAppHelp(c) return nil }
Action application main action
View Source
var After = func(c *cli.Context) (err error) { for _, action := range AfterActions { if err = action(c); err != nil { return } } return }
After application main action
View Source
var AfterActions = []cli.ActionFunc{}
AfterActions list all after actions
View Source
var Before = func(c *cli.Context) (err error) { for _, action := range BeforeActions { if err = action(c); err != nil { return } } return }
Before application main action
View Source
var BeforeActions = []cli.ActionFunc{}
BeforeActions list all before actions
View Source
var Commands = []cli.Command{}
Commands list all commands for application
View Source
var DisableVersionCommand = false
DisableVersionCommand do not add version command if DisableVersionCommand == true
View Source
var Flags = []cli.Flag{}
Flags list all global flags for application
View Source
var Name = "cmder"
Name of application
View Source
var Usage string
Usage of application
Functions ¶
func WrapAction ¶
func WrapAction(action cli.ActionFunc) cli.ActionFunc
WrapAction wrap action with default error handler
func WrapMainAction ¶
func WrapMainAction(action cli.ActionFunc) cli.ActionFunc
WrapMainAction wrap main action with default error handler and command helper
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.