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_COLORenv 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
trueif stdout is a TTY.