pub fn dispatch(cli: Cli) -> i32
Dispatch a parsed CLI command to the appropriate handler and map errors to the final exit code.