Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdHandlerMap = make(HandlerMap)
View Source
var RootHandlerMap = make(HandlerMap)
Functions ¶
func CmdHandler ¶
func HandleCommand ¶
func HandleCommand(handlerMap HandlerMap, args []string) (any, error)
HandleCommand processes args with the assumption that the first argument is a non-flag and is the command. HandleCommand is intended to be used recursively.
func RootHandler ¶
func SubCmdHandler ¶
Types ¶
type HandlerMap ¶
Click to show internal directories.
Click to hide internal directories.