Versions in this module Expand all Collapse all v1 v1.2.1 Aug 20, 2020 v1.2.0 Aug 20, 2020 Changes in this version + type Command struct + func (c *Command) Description() string + func (c *Command) Name() string + func (cmd *Command) Flags() *flag.FlagSet + func (cmd *Command) Handle(arguments []string) int + func (cmd *Command) Usage() + type Handler func(*Command, []string) int + type Map struct + func (cmds *Map) Add(name, descr string, handler Handler) *Command + func (cmds *Map) Get(cmdName string) *Command + func (cmds *Map) GetCommand() (cmd *Command, cmdArgs []string) + func (cmds *Map) GetIdx(cmdName string) (cmd *Command, idx int) + func (cmds *Map) HandleCommand() (exitCode int, err error) + func (cmds *Map) Usage()