Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ColorErrorMsg is the ansi color formatter for error messages ColorErrorMsg = color.New(color.FgHiRed) // ColorSuccessMsg is the ansi color formatter for success messages ColorSuccessMsg = color.New(color.FgHiGreen) // ColorWarningMsg is the ansi color formatter for warning messages ColorWarningMsg = color.New(color.FgHiYellow) // ColorCommand is the ansi color formatter for commands ColorCommand = color.New(color.FgHiBlue, color.Bold) // ColorKeyword is the ansi color formatter for cluster name ColorKeyword = color.New(color.FgHiBlue, color.Bold) )
Functions ¶
func AddColorFunctions ¶
func AddColorFunctions(addCallback func(string, interface{}))
AddColorFunctions invokes callback for each colorize functions.
func AddColorFunctionsForCobra ¶
func AddColorFunctionsForCobra()
AddColorFunctionsForCobra adds colorize functions to cobra, so that they can be used in usage or help.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.