Skip to content

feat(cli): add cleanup command and fix validate OOM#370

Merged
p-linnane merged 1 commit into
mainfrom
feat/cleanup-command
Apr 7, 2026
Merged

feat(cli): add cleanup command and fix validate OOM#370
p-linnane merged 1 commit into
mainfrom
feat/cleanup-command

Conversation

@p-linnane
Copy link
Copy Markdown
Member

Summary

  • Add macosdb cleanup to find and remove leftover temp directories (macosdb-*) and mounted DMGs from aborted scans. Dry-run by default; --force / -f to actually unmount and delete.
  • Fix validate getting OOM-killed when hashing large archives by wrapping the FileHandle.readData loop in autoreleasepool to prevent bridged NSData objects from accumulating.
  • Alphabetize subcommand registration in both CLI entry points.

@p-linnane p-linnane force-pushed the feat/cleanup-command branch 2 times, most recently from 83bb4ba to 9576c99 Compare April 7, 2026 04:17
Add `macosdb cleanup` to find and remove leftover temp directories
(`macosdb-*`) and mounted DMGs from aborted scans. Dry-run by default;
`--force` / `-f` to actually unmount and delete.

Fix `validate` getting OOM-killed when hashing large archives by
wrapping the `FileHandle.readData` loop in `autoreleasepool` to prevent
bridged `NSData` objects from accumulating.

Alphabetize subcommand registration in both CLI entry points.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
@p-linnane p-linnane force-pushed the feat/cleanup-command branch from 9576c99 to 28e5e45 Compare April 7, 2026 04:59
@p-linnane p-linnane merged commit 1191b8e into main Apr 7, 2026
6 checks passed
@p-linnane p-linnane deleted the feat/cleanup-command branch April 7, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant