use anyhow::Result;
use clap::Parser;
mod external_crates_tests;
mod lint;
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
struct Args {
#[clap(subcommand)]
cmd: Command,
}
#[derive(Debug, Parser)]
enum Command {
#[clap(name = "lint")]
Lint(lint::Args),
#[clap(name = "external-crates-tests")]
ExternalCratesTests,
}
fn main() -> Result<()> {
let args = Args::parse();
match args.cmd {
Command::Lint(args) => lint::run(args),
Command::ExternalCratesTests => external_crates_tests::run(),
}
}