Skip to content

Commit

Permalink
Tell the user when --recursive is traversing folders
Browse files Browse the repository at this point in the history
After calling `cargo-sweep` with `--recursive` in a big folder, the tool
usually stays silent for a long time leaving the user wondering what's
going on

To solve that, I added a log that tells that `cargo-sweep` is traversing
recursively directories, that's why it's taking long
  • Loading branch information
marcospb19 committed Sep 18, 2023
1 parent fd4dc9e commit 3cb4f59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ fn main() -> anyhow::Result<()> {
};

let processed_paths = if args.recursive {
info!("Searching recursively for Rust project folders");
paths
.iter()
.flat_map(|path| find_cargo_projects(path, args.hidden))
Expand Down

0 comments on commit 3cb4f59

Please sign in to comment.