Versions in this module Expand all Collapse all v1 v1.0.0 Jan 25, 2024 Changes in this version + type App struct + Args []string + ArgsPtr int + Commands map[string]*Command + DefaultCommand func(ctx *Context) error + Program string + SelectedCommand *Command + func NewApp() *App + func (app *App) AddCommand(cmd *Command) error + func (app *App) EnableDumpCommand() + func (app *App) ParseArgsAndFlags(ctx *Context) + func (app *App) ParseCommand() error + func (app *App) Run() error + func (app *App) RunCommand() error + func (app *App) SetDefaultCommand(routine func(ctx *Context) error) + type Command struct + Desc string + Exec func(ctx *Context) error + Help string + Name string + Usage string + type Context struct + App *App + Args []string + Flags map[string]string