use args::bisect::Command::SkipPullRequests;
use clap::Parser;
use self::args::*;
mod args;
#[tokio::main(flavor = "current_thread")]
async fn main() -> anyhow::Result<()> {
let args = Args::parse();
let Some(args_command) = args.command else {
anyhow::bail!("No command specified");
};
let result = match args_command {
Command::Bisect(SkipPullRequests(command)) => command.run().await,
};
if let Ok(exit_status) = &result {
if let Some(code) = exit_status.code() {
std::process::exit(code);
}
};
result.map(|_exit_status| ())
}