You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/xtask/src/main.rs

28 lines
526 B
Rust

mod codegen;
mod docs;
mod run;
use clap::Parser;
#[derive(Parser)]
pub struct XtaskOptions {
#[clap(subcommand)]
command: Command,
}
#[derive(Parser)]
enum Command {
Codegen(codegen::Options),
Docs,
IntegrationTest(run::Options),
}
fn main() -> anyhow::Result<()> {
let XtaskOptions { command } = Parser::parse();
match command {
Command::Codegen(opts) => codegen::codegen(opts),
Command::Docs => docs::docs(),
Command::IntegrationTest(opts) => run::run(opts),
}
}