Documentation
¶
Index ¶
- func CommandName(args Args) string
- func Error(msg string)
- func Fatal(msg string)
- func GetBool(args Args, name string) bool
- func GetInt(args Args, name string) (int, error)
- func GetString(args Args, name string) string
- func Info(msg string)
- func IsJSON(args Args) bool
- func RunApp(app App) error
- func Success(msg string)
- func Warn(msg string)
- 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 ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func CommandFlag ¶
func Description ¶
type SubcommandDef ¶
type SubcommandDef struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.