Skip to main content

parse_env_mode

Function parse_env_mode 

Source
pub fn parse_env_mode(s: &str) -> Option<OutputMode>
Expand description

Parse a DOIGET_MODE env-var value. Recognises the four CONFIG.md §3 modes case-insensitively; returns None for empty, whitespace-only, or unrecognised input (the resolution ladder then falls through to TTY detection).