use clap::Parser;
#[derive(Parser, Debug)]
#[command(about = "Run the cargo-rigtest acceptance test suite")]
pub struct RuntimeArgs {
#[arg(short, long)]
pub jobs: Option<usize>,
#[arg(long)]
pub seed: Option<u64>,
#[arg(short, long)]
pub filter: Option<String>,
#[arg(long)]
pub no_capture: bool,
#[arg(long, hide = true)]
pub run_single: Option<String>,
#[arg(long, hide = true)]
pub state_env_var: Option<String>,
#[arg(long, hide = true)]
pub rig_probe: bool,
#[arg(long, hide = true)]
pub list: bool,
#[arg(long, hide = true)]
pub format: Option<String>,
}
pub async fn run_suite(args: RuntimeArgs) -> anyhow::Result<()> {
if let Some(ref test_name) = args.run_single {
return crate::runner::run_single(test_name, args.state_env_var.as_deref()).await;
}
crate::orchestrator::run(args).await
}