Versions in this module Expand all Collapse all v1 v1.1.0 Apr 4, 2026 Changes in this version + type Path string + func (p *Path) Abs() string + func (p *Path) Exists() bool + func (p *Path) Get() any + func (p *Path) IsDir() bool + func (p *Path) IsRegularFile() bool + func (p *Path) Name() string + func (p *Path) Rel(basePath string) string + func (p *Path) Set(s string) error + func (p *Path) String() string v1.0.0 Apr 2, 2026 Changes in this version + var ErrHelp = errors.New("cli: help requested") + type Application struct + Help string + func NewApplication() *Application + func (a *Application) Output() io.Writer + func (a *Application) Parse(args []string) error + func (a *Application) SetOutput(w io.Writer) + func (a *Application) SubCommand(name, usage string) *Command + type Argument struct + Name string + Position int + Usage string + Value flag.Value + type Command struct + Name string + Usage string + func (c *Command) Arg(value flag.Value, name, usage string) + func (c *Command) BoolFlag(p *bool, name string, usage string) + func (c *Command) BoolFuncFlag(name, usage string, fn func(string) error) + func (c *Command) DurationFlag(p *time.Duration, name string, usage string) + func (c *Command) EnumArg(value flag.Value, name, usage string, values ...string) + func (c *Command) EnumFlag(value flag.Value, name string, usage string, values ...string) + func (c *Command) Flag(value flag.Value, name string, usage string) + func (c *Command) Float64Arg(p *float64, name, usage string) + func (c *Command) Float64Flag(p *float64, name string, usage string) + func (c *Command) FuncArg(name, usage string, fn func(string) error) + func (c *Command) FuncFlag(name, usage string, fn func(string) error) + func (c *Command) Int64Arg(p *int64, name, usage string) + func (c *Command) Int64Flag(p *int64, name string, usage string) + func (c *Command) IntArg(p *int, name, usage string) + func (c *Command) IntFlag(p *int, name string, usage string) + func (c *Command) Run(fn RunFunc) + func (c *Command) StringArg(p *string, name, usage string) + func (c *Command) StringFlag(p *string, name string, usage string) + func (c *Command) TextArg(p encoding.TextUnmarshaler, name, usage string) + func (c *Command) TextFlag(p encoding.TextUnmarshaler, name string, usage string) + func (c *Command) Uint64Arg(p *uint64, name, usage string) + func (c *Command) Uint64Flag(p *uint64, name string, usage string) + func (c *Command) UintArg(p *uint, name, usage string) + func (c *Command) UintFlag(p *uint, name string, usage string) + type Flag struct + DefValue string + Name string + Usage string + Value flag.Value + type RunFunc func() error