#[cfg(not(target_arch = "wasm32"))]
mod cli;
#[cfg(not(target_arch = "wasm32"))]
fn main() -> std::process::ExitCode {
match cli::run() {
Ok(()) => std::process::ExitCode::SUCCESS,
Err(error) => {
tracing::error!("{error}");
for (n, cause) in error.chain().enumerate().skip(1) {
tracing::info!(" {n}: {cause}");
}
std::process::ExitCode::FAILURE
}
}
}
#[cfg(target_arch = "wasm32")]
fn main() {}