#![allow(clippy::module_name_repetitions, dead_code, clippy::use_self)]
use clap::Parser;
mod cli;
#[tokio::main]
async fn main() {
let args = cli::args::Args::parse();
if args.verbose {
std::env::set_var("RUST_LOG", "debug");
}
else {
std::env::set_var("RUST_LOG", "info");
}
pretty_env_logger::init();
let config = cli::configure();
if let Err(e) = cli::run(config).await {
eprintln!("Error: {e}");
std::process::exit(1);
}
}