Versions in this module Expand all Collapse all v8 v8.4.4 Aug 24, 2022 v8.4.3 Aug 24, 2022 Changes in this version + const ENABLE_ECHO_INPUT — windows/amd64 + var TerminalSupportsColors = isTerminal() + var UserAskedForColors = "" + func AdvisoryColor(message string) string + func Colorize(message string, textColor color.Attribute) string + func ColorizeBold(message string, textColor color.Attribute) 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 ColoringFunction func(value string, row int, col int) string + type Printer interface + 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 struct + func NewTable(headers []string) *Table + func (t *Table) Add(row ...string) + func (t *Table) NoHeaders() + func (t *Table) PrintTo(result io.Writer) error + func (t *Table) SetTransformer(columnIndex int, tr Transformer) + func (t *Table) Transform(column int, s string) string + type TeePrinter struct + func NewTeePrinter(w io.Writer) *TeePrinter + func (t *TeePrinter) DisableTerminalOutput(disable bool) + func (t *TeePrinter) Print(values ...interface{}) (int, error) + func (t *TeePrinter) Printf(format string, a ...interface{}) (int, error) + func (t *TeePrinter) Println(values ...interface{}) (int, error) + func (t *TeePrinter) SetOutputBucket(bucket io.Writer) + type Transformer func(s string) string + type UI interface + Ask func(prompt string) (answer string) + AskForPassword func(prompt string) (answer string) + Confirm func(message string) bool + ConfirmDelete func(modelType, modelName string) bool + ConfirmDeleteWithAssociations func(modelType, modelName string) bool + Failed func(message string, args ...interface{}) + LoadingIndication func() + NotifyUpdateIfNeeded func(coreconfig.Reader) + Ok func() + PrintCapturingNoOutput func(message string, args ...interface{}) + PrintPaginator func(rows []string, err error) + Say func(message string, args ...interface{}) + ShowConfiguration func(coreconfig.Reader) error + Table func(headers []string) *UITable + Warn func(message string, args ...interface{}) + Writer func() io.Writer + func NewUI(r io.Reader, w io.Writer, printer Printer, logger trace.Printer) UI + type UITable struct + Table *Table + UI UI + func (u *UITable) Add(row ...string) + func (u *UITable) Print() error Other modules containing this package github.com/LukasHeimann/cloudfoundrycli