Versions in this module Expand all Collapse all v1 v1.1.0 Jun 4, 2023 Changes in this version + type BoolFlag struct + Alias string + Description string + Name string + Value bool + func (flag *BoolFlag) GetAlias() string + func (flag *BoolFlag) GetDescription() string + func (flag *BoolFlag) GetName() string + func (flag *BoolFlag) Load(argFound bool, argVal *string) (loaded bool, err error) v1.0.1 Jun 4, 2023 Changes in this version + func LoadFlagFromArgs(name, alias string, args []string) (found bool, value *string, err error) + type App struct + Action func(args map[string]string) + Args []string + Description string + Name string + OptFlags []Flag + ReqFlags []Flag + SubCmds []Cmd + func (app *App) Run() + type Cmd struct + Action func(args map[string]string) + Alias string + Args []string + Description string + Name string + OptFlags []Flag + ReqFlags []Flag + SubCmds []Cmd + type Flag interface + GetAlias func() string + GetDescription func() string + GetName func() string + Load func(argFound bool, argVal *string) (loaded bool, err error) + type IntFlag struct + Alias string + Description string + Name string + Value int + func (flag *IntFlag) GetAlias() string + func (flag *IntFlag) GetDescription() string + func (flag *IntFlag) GetName() string + func (flag *IntFlag) Load(argFound bool, argVal *string) (loaded bool, err error) + type JSONFlag struct + Alias string + Description string + EnvVar string + Name string + Value T + func (flag *JSONFlag[T]) GetAlias() string + func (flag *JSONFlag[T]) GetDescription() string + func (flag *JSONFlag[T]) GetName() string + func (flag *JSONFlag[T]) Load(argFound bool, argVal *string) (loaded bool, err error) + type StringFlag struct + AcceptedValues []string + Alias string + Description string + EnvVar string + Name string + Value string + func (flag *StringFlag) GetAlias() string + func (flag *StringFlag) GetDescription() string + func (flag *StringFlag) GetName() string + func (flag *StringFlag) Load(argFound bool, argVal *string) (loaded bool, err error)