Module output

Module output 

Source
Expand description

Console/UI behavior (color and interactivity) derived from CLI + env. UI-related option resolution.

These helpers translate CLI flags + environment variables into a single UiOptions struct used by higher-level crates.

Structs§

UiOptions
UI behavior flags.

Functions§

no_color_env_set
Interpret the NO_COLOR env var value.
resolve_interactive
Resolve whether prompts should run interactively.
resolve_ui_options
Resolve UI options from CLI flags and environment variables.
resolve_ui_options_with_tty
Resolve UI options, allowing tests to inject TTY detection.
stdout_is_tty
Return true if stdout is a TTY.