Versions in this module Expand all Collapse all v1 v1.1.0 Aug 14, 2015 Changes in this version + const ENABLE_ECHO_INPUT — windows/amd64 + const QuietPanic + var OsSupportsColors = runtime.GOOS != "windows" + var TerminalSupportsColors = isTerminal() + var UserAskedForColors = "" + func AdvisoryColor(message string) string + func Colorize(message string, color Color) string + func ColorizeBold(message string, color Color) string + func CommandColor(message string) string + func CrashedColor(message string) string + func Decolorize(message string) string + func EntityNameColor(message string) string + func FailureColor(message string) string + func HeaderColor(message string) string + func InitColorSupport() + func LogAppHeaderColor(message string) string + func LogHealthHeaderColor(message string) string + func LogStderrColor(message string) string + func LogStdoutColor(message string) string + func LogSysHeaderColor(message string) string + func NotLoggedInText() string + func PromptColor(message string) string + func StoppedColor(message string) string + func SuccessColor(message string) string + func TableContentHeaderColor(message string) string + func WarningColor(message string) string + type Color uint + type ColoringFunction func(value string, row int, col int) string + type DebugPrinter struct + func (DebugPrinter) Print(title, dump string) + type OutputCapture interface + SetOutputBucket func(*[]string) + type PrintableTable struct + func (t *PrintableTable) Add(row ...string) + func (t *PrintableTable) Print() + type Printer interface + ForcePrint func(a ...interface{}) (n int, err error) + ForcePrintf func(format string, a ...interface{}) (n int, err error) + ForcePrintln func(a ...interface{}) (n int, err error) + Print func(a ...interface{}) (n int, err error) + Printf func(format string, a ...interface{}) (n int, err error) + Println func(a ...interface{}) (n int, err error) + type Table interface + Add func(row ...string) + Print func() + func NewTable(ui UI, headers []string) Table + type TeePrinter struct + func NewTeePrinter() *TeePrinter + func (t *TeePrinter) DisableTerminalOutput(disable bool) + func (t *TeePrinter) ForcePrint(values ...interface{}) (n int, err error) + func (t *TeePrinter) ForcePrintf(format string, a ...interface{}) (n int, err error) + func (t *TeePrinter) ForcePrintln(values ...interface{}) (n int, err error) + func (t *TeePrinter) Print(values ...interface{}) (n int, err error) + func (t *TeePrinter) Printf(format string, a ...interface{}) (n int, err error) + func (t *TeePrinter) Println(values ...interface{}) (n int, err error) + func (t *TeePrinter) SetOutputBucket(bucket *[]string) + type TerminalOutputSwitch interface + DisableTerminalOutput func(bool) + type UI interface + Ask func(prompt string, args ...interface{}) (answer string) + AskForPassword func(prompt string, args ...interface{}) (answer string) + Confirm func(message string, args ...interface{}) bool + ConfirmDelete func(modelType, modelName string) bool + ConfirmDeleteWithAssociations func(modelType, modelName string) bool + FailWithUsage func(context *cli.Context) + Failed func(message string, args ...interface{}) + LoadingIndication func() + Ok func() + PanicQuietly func() + PrintCapturingNoOutput func(message string, args ...interface{}) + PrintPaginator func(rows []string, err error) + Say func(message string, args ...interface{}) + ShowConfiguration func(core_config.Reader) + Table func(headers []string) Table + Wait func(duration time.Duration) + Warn func(message string, args ...interface{}) + func NewUI(r io.Reader, printer Printer) UI