Versions in this module Expand all Collapse all v1 v1.0.0 Mar 16, 2025 Changes in this version + type Command struct + ArgFlags map[string]bool + Description string + Flags *flag.FlagSet + LogError func(format string, a ...any) + LogInfo func(format string, a ...any) + LogSuccess func(format string, a ...any) + LogWarning func(format string, a ...any) + Logger *log.DefaultLogger + Name string + Run RunFunc + ShortFlagMap map[string]string + SubCommands []*Command + Usage string + func (c *Command) AddBoolFlag(name, shortName, usage string, defaultValue, allowArg bool) *bool + func (c *Command) AddFlag(name, shortName, usage, defaultValue string, allowArg bool) *string + func (c *Command) AddIntFlag(name, shortName, usage string, defaultValue int, allowArg bool) *int + func (c *Command) GetEnv(key, defaultValue string) string + func (c *Command) GetEnvBool(key string, defaultValue bool) bool + func (c *Command) GetEnvInt(key string, defaultValue int) int + func (c *Command) GetFlagBool(name string) bool + func (c *Command) GetFlagInt(name string) int + func (c *Command) GetFlagString(name string) string + func (c *Command) PrintCommandHelp() + func (c *Command) SetupLogger(name string) + type RootFlags struct + func (rf *RootFlags) GetBool(name string) bool + func (rf *RootFlags) GetInt(name string) int + func (rf *RootFlags) GetString(name string) string + type RunFunc func(cmd *Command, rootFlags *RootFlags, args []string) error