Documentation ¶ Index ¶ func ShowHelp(cmds map[string]Cmd, args []string) type Cmd type Prompt func NewPrompt(cmds map[string]Cmd) *Prompt func (p *Prompt) Close() func (p *Prompt) Loop(prompt string) func (p *Prompt) Prompt(prompt string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ShowHelp ¶ func ShowHelp(cmds map[string]Cmd, args []string) Types ¶ type Cmd ¶ type Cmd struct { Name string Description string Usage string Run func(cmd Cmd, args []string) error } type Prompt ¶ type Prompt struct { // contains filtered or unexported fields } func NewPrompt ¶ func NewPrompt(cmds map[string]Cmd) *Prompt func (*Prompt) Close ¶ func (p *Prompt) Close() func (*Prompt) Loop ¶ func (p *Prompt) Loop(prompt string) func (*Prompt) Prompt ¶ func (p *Prompt) Prompt(prompt string) (string, error) Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.