holmgr / cargo-sweep

A cargo subcommand for cleaning up unused build files generated by Cargo
MIT License
694 stars 31 forks source link

Add flag `--all` #90

Closed marcospb19 closed 7 months ago

marcospb19 commented 1 year ago

If you want to sweep everything, you might want to run cargo clean instead of sweep.

But cargo-sweep can be used as a cargo clean that runs recursively in a folder full of projects, here's how you do it:

$ cargo sweep --recursive --time 0

I suggest we add a --all flag to remove the need of using --time 0:

$ cargo sweep --recursive --all
$ cargo sweep --all
jyn514 commented 1 year ago

Hmm, this seems fine, I suppose. I would want to desugar it to --time 0 internally if we do support it.

Max-Weissman commented 1 year ago

Can I try taking this on?

jyn514 commented 1 year ago

@Max-Weissman sure thing, go for it :)