Expand description
Color option handling for CLI.
Responsibilities:
- Define the ColorArg type for CLI argument parsing.
- Provide color initialization and global state management.
Not handled here:
- App-specific color handling (handled outside the CLI).
- Direct color output (see outpututil.rs and output/theme.rs).
Invariants/Assumptions:
- NO_COLOR environment variable takes precedence over CLI flags.
- Color initialization happens early in main() before any colored output.
Enums§
- Color
Arg - Color output control options for CLI arguments.
Functions§
- init_
color - Initialize colors from CLI arguments.