xplr/examples/run.rs

14 lines
314 B
Rust
Raw Normal View History

fn main() {
match xplr::app::runner().and_then(|a| a.run()) {
Ok(Some(out)) => print!("{}", out),
Ok(None) => {}
Err(err) => {
if !err.to_string().is_empty() {
eprintln!("error: {}", err);
};
std::process::exit(1);
}
}
}