1 2 3 4 5 6 7 8 9 10
use std::process::ExitCode; use outpost_core::{OutpostError, OutpostResult}; pub type CliResult<T> = OutpostResult<T>; pub fn report(err: OutpostError) -> ExitCode { eprintln!("error: {err}"); ExitCode::from(err.exit_code()) }