cargo-recursive-clean

Crates.iocargo-recursive-clean
lib.rscargo-recursive-clean
version0.2.310
sourcesrc
created_at2023-04-09 22:09:47.203819
updated_at2024-01-06 20:15:05.638615
descriptionA CLI app that cleans all Rust projects recursively given a base directory.
homepage
repositoryhttps://github.com/OLoKo64/cargo-recursive-clean
max_upload_size
id834559
size34,688
Reinaldo Rozato Junior (oloko64)

documentation

README

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.

Commit count: 19

cargo fmt