use clap::Parser;
use tracing_subscriber::EnvFilter;
mod commands;
#[derive(Parser)]
#[command(name = "kenosis", version, about, long_about = None)]
#[command(propagate_version = true)]
struct Cli {
#[command(subcommand)]
command: commands::Command,
}
fn main() {
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.with_target(false)
.init();
let cli = Cli::parse();
if let Err(e) = commands::run(cli.command) {
eprintln!("\x1b[31merror\x1b[0m: {e}");
std::process::exit(1);
}
}