xtask: Add ci/AllCi command

This commit is contained in:
Henrik Tjäder 2025-06-08 13:00:06 +02:00 committed by Emil Fresk
parent 5131474221
commit 0a68825911
2 changed files with 5 additions and 0 deletions

View file

@ -433,6 +433,10 @@ pub struct Cli {
#[derive(Debug, Clone, Subcommand)]
pub enum Commands {
/// Run everything CI would
#[clap(alias = "ci")]
AllCi,
/// Format code
#[clap(alias = "fmt")]
Format(FormatOpt),

View file

@ -177,6 +177,7 @@ fn main() -> anyhow::Result<()> {
};
let final_run_results = match &cli.command {
Commands::AllCi => {}
Commands::Format(args) => cargo_format(globals, &cargologlevel, &args.package, args.check),
Commands::Clippy(args) => cargo_clippy(globals, &cargologlevel, args, backend),
Commands::Check(args) => cargo(globals, BuildOrCheck::Check, &cargologlevel, args, backend),