Documentation
¶
Index ¶
- func CommandName(args Args) string
- func GetBool(args Args, name string) bool
- func GetInt(args Args, name string) (int, error)
- func GetString(args Args, name string) string
- func IsJSON(args Args) bool
- func RunApp(app App) error
- type App
- func Action(app App, handler func(Args)) App
- func AddFlag(app App, name string, description string, defaultValue string) App
- func Arg(app App, name string, description string) App
- func Command(app App, name string, desc string) App
- func CommandAction(app App, cmd string, handler func(Args)) App
- func CommandFlag(app App, cmd string, name string, desc string, defaultValue string) App
- func Description(app App, desc string) App
- func GlobalFlag(app App, name string, desc string, defaultValue string) App
- func New(name string) App
- type ArgDef
- type Args
- type FlagDef
- type SubcommandDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandName ¶ added in v0.0.15
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func CommandAction ¶ added in v0.0.15
func CommandFlag ¶ added in v0.0.15
func Description ¶ added in v0.0.15
func GlobalFlag ¶ added in v0.0.15
type SubcommandDef ¶ added in v0.0.15
type SubcommandDef struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.