Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownCommand = errors.New("unknown command") ErrArgumentRequired = errors.New("argument required") ErrUnknownTarget = errors.New("unknown target") )
View Source
var DefaultCLIReader io.Reader = os.Stdin
View Source
var DefaultREPLUI = newREPLUI("")
DefaultREPLUI is used for e2e testing
View Source
var (
ErrProtoFileRequired = errors.New("least one proto file required")
)
Functions ¶
This section is empty.
Types ¶
type BaseUI ¶
type BaseUI struct {
// contains filtered or unexported fields
}
func NewBasicUI ¶
func NewBasicUI() *BaseUI
func (*BaseUI) ErrPrintln ¶
func (u *BaseUI) ErrPrintln(a interface{})
func (*BaseUI) InfoPrintln ¶
func (u *BaseUI) InfoPrintln(a interface{})
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
type ColoredREPLUI ¶
type ColoredREPLUI struct {
*REPLUI
}
func (*ColoredREPLUI) ErrPrintln ¶
func (u *ColoredREPLUI) ErrPrintln(a interface{})
func (*ColoredREPLUI) InfoPrintln ¶
func (u *ColoredREPLUI) InfoPrintln(a interface{})
type ColoredUI ¶
type ColoredUI struct {
UI
}
func (*ColoredUI) ErrPrintln ¶
func (u *ColoredUI) ErrPrintln(a interface{})
func (*ColoredUI) InfoPrintln ¶
func (u *ColoredUI) InfoPrintln(a interface{})
type REPLUI ¶
type REPLUI struct { UI // contains filtered or unexported fields }
func (*REPLUI) ErrPrintln ¶
func (u *REPLUI) ErrPrintln(a interface{})
func (*REPLUI) InfoPrintln ¶
func (u *REPLUI) InfoPrintln(a interface{})
Click to show internal directories.
Click to hide internal directories.