pub fn dispatch(
cli: Cli,
stdout: &mut dyn Write,
stderr: &mut dyn Write,
stdout_is_terminal: bool,
) -> i32Expand description
Parse, dispatch, and compute a process exit code — everything
main.rs does not have to know how to do itself.
stdout_is_terminal decides cli::ColorMode::Auto; pass the real
std::io::stdout().is_terminal() from main.rs (never introspected
here, since stdout is a generic sink that may not be the real
process stdout in a test).