Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CurrentHighlight = ansiterm.Foreground(ansiterm.Green)
CurrentHighlight is the color used to show the current controller, user or model in tabular
var DefaultFormatters = map[string]cmd.Formatter{
"yaml": cmd.FormatYaml,
"json": cmd.FormatJson,
}
DefaultFormatters holds the formatters that can be specified with the --format flag.
var ErrorHighlight = ansiterm.Foreground(ansiterm.Red)
ErrorHighlight is the color used to show error conditions.
var GoodHighlight = ansiterm.Foreground(ansiterm.Green)
GoodHighlight is used to indicate good or success conditions.
var WarningHighlight = ansiterm.Foreground(ansiterm.Yellow)
WarningHighlight is the color used to show warning conditions. Generally things that the user should be aware of, but not necessarily requiring any user action.
Functions ¶
Types ¶
type Wrapper ¶
Wrapper provides some helper functions for writing values out tab separated.
func (*Wrapper) Print ¶
func (w *Wrapper) Print(values ...interface{})
Print writes each value followed by a tab.
func (*Wrapper) PrintColor ¶
PrintColor writes the value out in the color context specified.
func (*Wrapper) PrintStatus ¶
PrintStatus writes out the status value in the standard color.