Project cache finder and cleaner.
cargo install projclean
Download from Github Releases, unzip and add projclean to your $PATH.
``` SAGE: projclean [OPTIONS] [--] [PATH]
ARGS:
OPTIONS:
-h, --help Print help information
-r, --rule
Find node_modules folders.
projclean -r node_modules
Find node_modules folders then print.
projclean -r node_modules -t
Find node_modules folders starting from $HOME.
projclean -r node_modules $HOME
Projclean detect project and target folder according to rule.
Rule consist of two parts:
<target folder>[@flag file]
Both target folder and flag file can be regex.
If flag file is provided, Only folders with flag files will be selected.
For example. The current directory structure is as follows:
.
├── projA
│ ├── Cargo.toml
│ └── target
└── projB
└── target
Run projclean -r target
will find both projA/target
and projB/target
.
Run projclean -r target@Cargo.toml
will find projA/target
only.
Below is a collection of rule of common porjects:
node_modules
target@Cargo.toml
^(Debug|Release)$@\.sln$
^(build|xcuserdata|DerivedData)$@Podfile
build@build.gradle
Copyright (c) 2022 projclean-developers.
argc is made available under the terms of either the MIT License or the Apache License 2.0, at your option.
See the LICENSE-APACHE and LICENSE-MIT files for license details.