Documentation
¶
Overview ¶
Package colorize holds the color-output primitives shared by every package that renders to a terminal: the ColorMode setting (always, never, auto with piped-output detection) and the switch that decides whether color is enabled. It is a leaf package so that both the model (checker/rules severity rendering) and the presentation layer (formatters) can use it without either owning it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSupportedColorValues ¶
func GetSupportedColorValues() []string
func IsColorEnabled ¶
IsColorEnabled is the exported form of isColorEnabled. Lets oasdiff packages outside checker (validate, future subcommands) gate their own color logic on the same auto-detect + override convention.
func SetPipedOutput ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.