Documentation ¶
Index ¶
- Constants
- Variables
- type BasicUI
- func (b *BasicUI) ErrorOutput(s string)
- func (b *BasicUI) HeaderOutput(s string)
- func (b *BasicUI) Stderr() io.Writer
- func (b *BasicUI) Stdout() io.Writer
- func (b *BasicUI) SuccessOutput(s string)
- func (u *BasicUI) Table(tbl *Table)
- func (b *BasicUI) UnchangedOutput(s string)
- func (b *BasicUI) WarnOutput(s string)
- type Cell
- type Command
- type Table
- type Ui
- type UiColor
Constants ¶
View Source
const ( Yellow = "yellow" Green = "green" Red = "red" )
Functions that are useful for table output.
Variables ¶
View Source
var ( UiColorNone UiColor = UiColor{noColor, false} UiColorRed = UiColor{int(color.FgHiRed), false} UiColorGreen = UiColor{int(color.FgHiGreen), false} UiColorYellow = UiColor{int(color.FgHiYellow), false} UiColorBlue = UiColor{int(color.FgHiBlue), false} UiColorMagenta = UiColor{int(color.FgHiMagenta), false} UiColorCyan = UiColor{int(color.FgHiCyan), false} )
A list of colors that are useful. These are all non-bolded by default.
Functions ¶
This section is empty.
Types ¶
type BasicUI ¶
BasicUI augments mitchellh/cli.BasicUi by exposing the underlying io.Writer.
func (*BasicUI) ErrorOutput ¶
func (*BasicUI) HeaderOutput ¶
func (*BasicUI) SuccessOutput ¶
func (*BasicUI) UnchangedOutput ¶
func (*BasicUI) WarnOutput ¶
type Table ¶
Table is passed to UI.Table to provide a nicely formatted table.
type Ui ¶
type Ui interface { mcli.Ui Stdout() io.Writer Stderr() io.Writer ErrorOutput(string) HeaderOutput(string) WarnOutput(string) SuccessOutput(string) UnchangedOutput(string) Table(tbl *Table) }
Ui implements the mitchellh/cli.Ui interface, while exposing the underlying io.Writer used for stdout and stderr. TODO: rename to UI to match golang style guide
Click to show internal directories.
Click to hide internal directories.