Versions in this module Expand all Collapse all v1 v1.8.5 Sep 3, 2023 Changes in this version + var SortLessFunc = func(i, j *Command) bool + func Errorf(format string, args ...interface{}) + func Execute() + func Exit() + func ExitIfErrors() + func Fatalf(format string, args ...interface{}) + func GetExitStatus() int + func Help(w io.Writer, args []string) + func PrintUsage(w io.Writer, cmd *Command) + func RegisterCommand(cmd *Command) + func SetExitStatus(n int) + func Sort() + type Command struct + Commands []*Command + CustomFlags bool + Flag flag.FlagSet + Long string + Run func(cmd *Command, args []string) + Short string + UsageLine string + var RootCommand *Command + func (c *Command) LongName() string + func (c *Command) Name() string + func (c *Command) Runnable() bool + func (c *Command) Usage() + type CommandEnvHolder struct + CommandsWidth int + Exec string + var CommandEnv CommandEnvHolder