Skip to content

Commit

Permalink
fix(libmake): 🚑 missing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Dec 31, 2023
1 parent 4414fe1 commit 6f0b689
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@

extern crate xtasks;
use libmake::run;
use std::env::args;

Check warning on line 35 in src/main.rs

View workflow job for this annotation

GitHub Actions / Check

unused import: `std::env::args`

Check warning on line 35 in src/main.rs

View workflow job for this annotation

GitHub Actions / Test

unused import: `std::env::args`

Check warning on line 35 in src/main.rs

View workflow job for this annotation

GitHub Actions / Test

unused import: `std::env::args`

Check warning on line 35 in src/main.rs

View workflow job for this annotation

GitHub Actions / Test

unused import: `std::env::args`

Check failure on line 35 in src/main.rs

View workflow job for this annotation

GitHub Actions / Lint

unused import: `std::env::args`

/// This is the main entry point for the libmake application.
fn main() {
// Call the `run()` function from the `libmake` module.
if args.len() > 1 && args[1] == "xtask" {
let args: Vec<String> = std::env::args().collect();

// Check if the command-line arguments contain "xtask"
if args.iter().any(|arg| arg == "xtask") {
// The user ran the "xtask" command, so execute your code
let _ = xtasks::tasks::ci::CIBuilder::default().run();
}
Expand Down

0 comments on commit 6f0b689

Please sign in to comment.