#![deny(clippy::all)]
#![warn(clippy::pedantic)]
mod cli;
mod existence;
mod scan;
mod scan_context;
mod util;
mod vector_filter;
use clap::Parser;
use cli::{Cli, Command};
#[tokio::main]
async fn main() {
let cli = Cli::parse();
let format = cli.format;
let result = match cli.command {
Command::Existence(args) => existence::run(args, format).await,
Command::Scan(args) => scan::run(args, format).await,
};
if let Err(e) = result {
eprintln!("error: {e}");
std::process::exit(1);
}
}