Documentation ¶
Index ¶
- Variables
- 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 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
- type PrintableTable
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OsSupportsColors = runtime.GOOS != "windows" TerminalSupportsColors = isTerminal() UserAskedForColors = "" )
Functions ¶
func AdvisoryColor ¶
func ColorizeBold ¶
func CommandColor ¶
func CrashedColor ¶
func Decolorize ¶
func EntityNameColor ¶
func FailureColor ¶
func HeaderColor ¶
func InitColorSupport ¶
func InitColorSupport()
func LogAppHeaderColor ¶
func LogHealthHeaderColor ¶
func LogStderrColor ¶
func LogStdoutColor ¶
func LogSysHeaderColor ¶
func PromptColor ¶
func StoppedColor ¶
func SuccessColor ¶
func TableContentHeaderColor ¶
func WarningColor ¶
Types ¶
type PrintableTable ¶
type PrintableTable struct {
// contains filtered or unexported fields
}
func (*PrintableTable) Add ¶
func (t *PrintableTable) Add(row ...string)
func (*PrintableTable) Print ¶
func (t *PrintableTable) Print()
Click to show internal directories.
Click to hide internal directories.