Expand description
Runtime color output policy helpers.
This module centralizes color enable/disable decisions for CLI and transcript-style output paths. By default it follows the NO_COLOR environment variable with strict “present and non-empty” semantics.
Structs§
- Color
Output Policy - Runtime color output policy.
Enums§
- Color
Output Policy Source - Source that determined the active runtime color policy.
Functions§
- color_
output_ enabled - Returns true when runtime color output is enabled.
- current_
color_ output_ policy - Read the current runtime color policy.
- no_
color_ env_ active - Returns true when NO_COLOR is present and non-empty.
- reset_
color_ output_ policy_ from_ env - Reset runtime color policy from environment defaults.
- set_
color_ output_ policy - Replace the current runtime color policy.