A cli tool to spot and clean up mess in your projects.
- Find unfinished work
- Find outdated repositories
- Clean up temporary files
go install github.com/olzhasar/mess@latest
Find all git repositories in the specified path. Mainly useful in pipelines
mess git <path>
Filter repositories with uncommitted changes
mess git <path> --dirty
Filter repositories with last commit older than specified number of days
mess git <path> --older <days>
Remove temporary files from the specified path
mess clean <path>
Deletes the following files and directories:
*.pyc
— Python compiled files__pycache__
— Python cache directory.mypy_cache
— MyPy cache directory.pytest_cache
— Pytest cache directory.ruff_cache
— Ruff cache directory.tox
— Tox virtual environment files.nox
— Nox virtual environment filesnode_modules
— Node.js dependencies
mess git
is significantly faster for finding Git repositories compared to the find
+ test
alternative:
find <path> -type d -execdir test -d {}/.git \; -prune -print
Scanning a 300GB+ home directory on an M1 Macbook Pro:
mess git ~ 1.90s user 7.22s system 39% cpu 23.096 total
find ~ -type d -execdir test -d {}/.git \; -print -prune 60.76s user 184.72s system 70% cpu 5:46.94 total
mess
did 15X better in this case.
MIT