11 releases
0.2.310 | Jan 6, 2024 |
---|---|
0.2.300 | Jan 6, 2024 |
0.2.211 | Nov 17, 2023 |
0.2.0 | Apr 29, 2023 |
0.1.9 | Apr 12, 2023 |
#1074 in Command line utilities
16KB
316 lines
Rust Recursive Project Cleaner
A CLI app that cleans all Rust projects recursively given a base directory.
Install
cargo install cargo-recursive-clean
Usage
To clean all Rust projects recursively in the current directory:
cargo-recursive-clean
You can also use the extending cargo feature:
cargo recursive-clean
All the option below are also available with this feature.
To clean all Rust projects recursively in a specific directory:
cargo-recursive-clean <path-to-directory>
You can also specify to only clean release or doc artifacts:
cargo-recursive-clean --release
cargo-recursive-clean --doc
Dry run
You can also specify to only print the directories that would be cleaned, without actually cleaning them:
cargo-recursive-clean --dry
Ignoring patterns
You can specify a list of patterns to ignore when cleaning. This is useful if you have a project that you don't want to clean, or if you have a project that you want to clean but it's not a Rust project. By default, the following patterns are ignored: '**/node_modules/**','**/target/**'
.
You can also specify a list of patterns to ignore when cleaning, for example:
cargo-recursive-clean --ignored-patterns '**/node_modules/**,**/venv/**'
This will ignore all node_modules
and venv
directories.
To not ignore any patterns, you can simply pass an empty string:
cargo-recursive-clean --ignored-patterns ''
License
This project is licensed under the MIT License - see the LICENSE file for details.
Dependencies
~9–18MB
~240K SLoC