devclean is both an executable binary that can be run, and a library that can be used in Rust programs.
Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install devclean
It will make the devclean command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall devclean uninstalls.
Adding devclean library as a dependency
Run this command in a terminal, in your project's directory:
cargo add devclean
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
devclean = "0.1.2"
The devclean library will be automatically available globally.
Read the devclean library documentation .
Back to the crate overview .
Readme
devclean
devclean is a tool and library for cleaning up development directories.
Installation
cargo install devclean
Features
Find Git Repo with Uncommitted Changes
Before removing a directory, it is important to check if there are any uncommitted changes in the directory. This feature finds all git repositories with uncommitted changes.
devclean find-dirty-git < path>
❯ devclean find- dirty- git ..
⠁ Scanning: / Users/ xxx/ Dev/ projects/ devclean
Path | Depth | Size
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - + - - - - - - - - -
/ Users/ xxx/ Dev/ projects/ devclean | 0 | 1. 3 GiB
Find Cache and Dependencies Directories To Clean
Code projects can have large cache and dependency directories that can be cleaned up to save disk space.
Supported Projects / Languages
Usage
devclean < path>
devclean < path> - -dry-run # Won't remove anything
devclean <path> --all # Select all found directories by default
devclean <path> -y # Skip confirmation
devclean <path> -t # Time Scanning and Cleaning