Versions in this module Expand all Collapse all v0 v0.2.0 Nov 1, 2013 v0.1.1 Oct 23, 2013 v0.1.0 Oct 23, 2013 Changes in this version + type BasicUi struct + Writer io.Writer + func (u *BasicUi) Error(message string) + func (u *BasicUi) Info(message string) + func (u *BasicUi) Output(message string) + type CLI struct + Args []string + Commands map[string]CommandFactory + Ui Ui + func (c *CLI) IsHelp() bool + func (c *CLI) Run() (int, error) + func (c *CLI) Subcommand() string + func (c *CLI) SubcommandArgs() []string + type Command interface + Help func() string + Run func(args []string, ui Ui) int + Synopsis func() string + type CommandFactory func() (Command, error) + type MockCommand struct + HelpText string + RunArgs []string + RunCalled bool + RunResult int + RunUi Ui + func (c *MockCommand) Help() string + func (c *MockCommand) Run(args []string, ui Ui) int + func (c *MockCommand) Synopsis() string + type MockUi struct + ErrorWriter *bytes.Buffer + OutputWriter *bytes.Buffer + func (u *MockUi) Error(message string) + func (u *MockUi) Info(message string) + func (u *MockUi) Output(message string) + type PrefixedUi struct + ErrorPrefix string + InfoPrefix string + OutputPrefix string + Ui Ui + func (u *PrefixedUi) Error(message string) + func (u *PrefixedUi) Info(message string) + func (u *PrefixedUi) Output(message string) + type Ui interface + Error func(string) + Info func(string) + Output func(string) + type UiWriter struct + Ui Ui + func (w *UiWriter) Write(p []byte) (n int, err error)