Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 1.49 KB

README.md

File metadata and controls

77 lines (51 loc) · 1.49 KB

mess

A cli tool to spot and clean up mess in your projects.

Features

  • Find unfinished work
  • Find outdated repositories
  • Clean up temporary files

Installation

go install github.com/olzhasar/mess@latest

Commands

Git

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>

Clean

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 files
  • node_modules — Node.js dependencies

Performance

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.

License

MIT