Expand description
Terminal helpers — ANSI color gating and POSIX getenv wrappers.
Color policy: NO_COLOR (any value, including empty) disables
color; CLICOLOR_FORCE=1 forces it even when stdout is piped.
NO_COLOR wins — see https://no-color.org.
Functions§
- getenv_
nonempty - Convenience getenv — returns
Nonefor both unset and empty. - use_
color_ stderr - Returns
truewhen ANSI color should be rendered on stderr. - use_
color_ stdout - Returns
truewhen ANSI color should be rendered on stdout.