Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCommands ¶
Types ¶
type CLI ¶
type CLI struct { Commands map[string]*Command Rl *readline.Instance // contains filtered or unexported fields }
CLI is a set of Commands and their aliases.
func (*CLI) AddCommands ¶
type Command ¶
type Command struct {
Name, Description string
Aliases []string
Fn CommandFunc
}
Command is a CLI command which runs a given function Fn when the command is issued.
type CommandFunc ¶
CommandFunc is the type which a Command's Fn must be.
Click to show internal directories.
Click to hide internal directories.