Add safe Docker runtime cleanup#2
Conversation
Adds a repeatable --ignore CLI option and support for ~/.config/dev-purge/config.json with an ignore array. Patterns are glob-like (supports ~ and **). Scanner respects ignore patterns when discovering projects and bloat dirs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- Scan exited containers and dangling images alongside filesystem bloat - Add --category containers|images, --containers-only, --images-only - Remove standalone docker subcommand; use promisify(exec) in docker.js - Align lockfile package name/bin with dev-purge; pin dependency versions - Document new categories and flags in README - Add failproofai policies config Co-authored-by: Cursor <cursoragent@cursor.com>
|
Useful feature, but this PR overlaps significantly with #3 (ignore-pattern handling) — the two are diverging. Worth resolving before merge. Critical[P0] Overlap with #3, with diverged glob implementation. Both PRs add
Recommend: rebase on top of #3 after that merges and drop the duplicated Should fix[P1] [P1] Docker [P2] [P2] Nice catches
Minor
VerdictBlock on the #3 overlap. Either:
The Docker portion is solid and ready. Don't ship two diverging glob implementations. |
Summary
--category containers/images,--containers-only, and--images-only--older-thanto Docker artifacts when creation time is availablenode_modulesor.venvSafety
status=exitedexecFilewith argv instead of shell command stringsChecks
node --check src/index.jsnode --check src/docker.jsnpm start -- --dry-run --category containers --depth 0npm start -- --dry-run --containers-only --depth 0npm start -- --dry-run --images-only --depth 0