Documentation
¶
Index ¶
- Constants
- type Color
- func (c *Color) Add(text string) string
- func (c *Color) Blue(text string) string
- func (c *Color) Bold(text string) string
- func (c *Color) Change(text string) string
- func (c *Color) Cyan(text string) string
- func (c *Color) Destroy(text string) string
- func (c *Color) FormatPlanHeader(added, modified, dropped int) string
- func (c *Color) FormatPlanLine(symbol, objectType, name, action string) string
- func (c *Color) FormatSummaryLine(objectType string, added, modified, dropped int) string
- func (c *Color) PlanSymbol(action string) string
Constants ¶
View Source
const ( Reset = "\033[0m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Cyan = "\033[36m" White = "\033[37m" Bold = "\033[1m" )
ANSI color codes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
Color represents a colorizer that can be enabled or disabled
func (*Color) FormatPlanHeader ¶
FormatPlanHeader formats the main plan header
func (*Color) FormatPlanLine ¶
FormatPlanLine formats a line in Terraform plan style
func (*Color) FormatSummaryLine ¶
FormatSummaryLine formats summary counts with colors
func (*Color) PlanSymbol ¶
PlanSymbol returns the appropriate symbol for plan actions
Click to show internal directories.
Click to hide internal directories.