From 4414fe1c9e0a0a6b6f7051a91bed644a21cf5495 Mon Sep 17 00:00:00 2001 From: Sebastien Rousseau Date: Sun, 31 Dec 2023 00:32:38 +0000 Subject: [PATCH] fix(libmake): :white_check_mark: updated tests --- .cargo/config.toml | 2 +- src/main.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 6386c66..9508942 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ [alias] -xtask = "run --package xtasks --bin xtasks --" +xtask = "run --package libmake --bin libmake --" diff --git a/src/main.rs b/src/main.rs index 237f4c2..d20390a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,10 @@ use libmake::run; /// This is the main entry point for the libmake application. fn main() { // Call the `run()` function from the `libmake` module. - let _ = xtasks::tasks::ci::CIBuilder::default().run(); + if args.len() > 1 && args[1] == "xtask" { + // The user ran the "xtask" command, so execute your code + let _ = xtasks::tasks::ci::CIBuilder::default().run(); + } if let Err(ref e) = run() { eprintln!("Error running libmake: {e}");