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).