Skip to content

New cli commands for cleanup and viewing homebrew caches#21

Merged
darthsharp merged 7 commits into
mainfrom
feature/brewcleanup
May 22, 2026
Merged

New cli commands for cleanup and viewing homebrew caches#21
darthsharp merged 7 commits into
mainfrom
feature/brewcleanup

Conversation

@darthsharp
Copy link
Copy Markdown
Contributor

No description provided.

- Introduced `BrewCleanup` implementation for executing `brew cleanup` with options to prune by days or remove all cache files.
- Added CLI commands for running cleanup and querying reclaimable disk space (`BrewCleanUpCommand`, `BrewReclaimableSpaceCommand`).
- Implemented exception handling with `BrewCleanupFailedException`.
- Registered `IBrewCleanup` in DI container.
- Added associated options, utilities, and validation (`BrewCleanupOptions`, `ReclaimableSpaceParser`).
- Included comprehensive tests for functionality and edge cases (`BrewCleanupTests`, `ReclaimableSpaceParserTests`).
… cleanup --dry-run`

- Introduced `ReclaimableItem` and `ReclaimableSpace` models to represent detailed Homebrew cleanup output.
- Added new parsing logic in `ReclaimableSpaceParser` to extract structured data from individual cleanup entries and total reclaimed space.
- Extended `IBrewCleanup` interface with `GetReclaimableSpaceDetailsAsync` for detailed output.
- Updated `BrewReclaimableSpaceCommand` to support displaying detailed cleanup information.
- Enhanced test coverage for `ReclaimableSpaceParser` and new command logic.
…cement for `BrewListInstalledSoftwareCommand`.
@darthsharp darthsharp merged commit 0be811f into main May 22, 2026
2 checks passed
@darthsharp darthsharp deleted the feature/brewcleanup branch May 22, 2026 13:08
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