Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sigoden/projclean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projclean

CI Crates

Find and clean dependencies & builds from software projects to saving space or making backup easier.

screenshot

Why

  • Save space: Cleans unnecessary directories and files.
  • Very fast: Written in rust, optimized for concurrency.
  • Easy to use: A tui listing all found targets and pressing <space> to get rid of them.
  • Minified: single executable file, no dependencies, no installation.

Install

With cargo

cargo install projclean

Binaries on macOS, Linux, Windows

Download from Github Releases, unzip and add projclean to your $PATH.

CLI

USAGE:
    projclean [OPTIONS] [RULES]...

ARGS:
    <RULES>...    Search rules, like node_modules or [email protected]

OPTIONS:
    -C, --directory <DIR>    Start searching from DIR [default: .]
    -f, --force              Delete found targets without entering tui
    -p, --print              Print found targets only
    -h, --help               Print help information
    -V, --version            Print version information

Find and clean node_modules folders.

projclean node_modules

Common search rules for common projects:

name search rule
js node_modules
rs [email protected]
vs '^(Debug|Release)$@\.sln$'
ios '^(build|xcuserdata|DerivedData)$@Podfile'
android [email protected]
java [email protected]
php [email protected]

Find and clean dependencies & builds from kinds of projects.

projclean node_modules [email protected] [email protected]

Start searching from specific directory, other than current work directory.

projclean -C $HOME node_modules [email protected]

Search Rule

Projclean find targets according search rule.

Rule consist of two parts:

<target-folder>[@flag-file]

Both target folder and flag file can be plain text or regex.

Flag file is used to filter out folders that match only names but not projects.

E.g. The directory has the following contents:

.
├── misc-proj
│   └── target
└── rust-proj
    ├── Cargo.toml
    └── target

Rule target found all target folders

$ projclean target -p
/tmp/demo/rust-proj/target
/tmp/demo/misc-proj/target

Rule [email protected] found target folders belongs the rust project.

$ projclean [email protected] -p
/tmp/demo/rust-proj/target

License

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.

About

Project dependencies & build artifacts cleanup tool.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages