pub fn exit_code_from_error(err: &Error) -> u8
Determine the exit code from an anyhow::Error.
anyhow::Error
If the error is a CliError, returns its category’s exit code. Otherwise, infers the category from the error message.
CliError