From cc1a6bb23c9417c3aec53e7e027d5bd008dd2599 Mon Sep 17 00:00:00 2001 From: "Raphael O." Date: Tue, 20 Aug 2024 21:59:14 +0200 Subject: [PATCH] build: Create clean subcommand to also delete limine clone --- build/xtask/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/xtask/src/main.rs b/build/xtask/src/main.rs index 7a90865f..792face0 100644 --- a/build/xtask/src/main.rs +++ b/build/xtask/src/main.rs @@ -26,6 +26,7 @@ SUBCOMMANDS: fmt Run cargo fmt clippy Run clippy lint Run clippy and cargo fmt + clean Cleans the limine clone and runs cargo clean "; fn main() -> Result<()> { @@ -76,6 +77,11 @@ fn main() -> Result<()> { print!("{}", HELP); } + Some("clean") => { + cmd!(sh, "rm -rf xernel/kernel/limine").run()?; + cmd!(sh, "cargo clean").run()?; + } + Some(cmd) => bail!("Unknown subcommand: '{}'", cmd), None => bail!("You must supply a subcommand."), }