mod bwrap;
pub use bwrap::*;
mod command;
pub use command::*;
mod iterators;
pub use iterators::*;
mod path;
pub use path::*;
pub mod reexec;
mod result_ext;
pub use result_ext::*;
mod timestamp;
pub use timestamp::*;
mod tracing_util;
pub use tracing_util::*;
pub const NAME: &str = "bootc";
pub fn run_main<F>(f: F)
where
F: FnOnce() -> anyhow::Result<()>,
{
use std::io::Write as _;
use owo_colors::OwoColorize;
if let Err(e) = f() {
let mut stderr = anstream::stderr();
let _ = writeln!(stderr, "{}{:#}", "error: ".red(), e);
std::process::exit(1);
}
}