Versions in this module Expand all Collapse all v2 v2.0.0 Jan 4, 2024 Changes in this version + const AllowDots + const AllowHyphen + const AllowMultipleValues + const AllowUnderscore + const IsDirectory + const IsExistent + const IsNotExistent + const IsRegularFile + const IsRequired + const IsValidJSON + const ParamArg + const ParamEnvVar + const ParamFlag + const SeparatorColon + const SeparatorSemiColon + const TypeAlphanumeric + const TypeBool + const TypeFloat + const TypeInt + const TypePathFile + const TypeString + const VERSION + func OnPostValidation(fn func(c *Cmd) error) cmdOption + func OnTrue(fn func(c *Cmd)) paramOption + type CLI struct + func NewCLI(n string, d string, a string) *CLI + func (c *CLI) AddCmd(n string, d string, h func(cli *CLI) int, opts ...cmdOption) *Cmd + func (c *CLI) AddEnvVar(n string, d string) + func (c *CLI) Arg(n string) string + func (c *CLI) Flag(n string) string + func (c *CLI) Run() int + type Cmd struct + func (c *Cmd) AddArg(n string, hv string, d string, t int64, f int64, opts ...paramOption) + func (c *Cmd) AddEnvVar(n string, d string, t int64, f int64, opts ...paramOption) + func (c *Cmd) AddFlag(n string, a string, hv string, d string, t int64, f int64, opts ...paramOption)