Skip to content

feat(macutil): uninstall selected Homebrew apps - #18

Merged
Cryptokid92 merged 3 commits into
mainfrom
mac-15-uninstall
Aug 29, 2026
Merged

Cryptokid92 merged 3 commits into
mainfrom
mac-15-uninstall

Conversation

@Cryptokid92

Copy link
Copy Markdown
Owner

Why

Install could add catalog Homebrew apps but could not take them off. Uninstall is the dual of install. It uses catalog casks and formulas only. A missing package is success.

Scope

  • BrewClient.uninstall in MacUtilGUI/Services/BrewClient.fs runs brew uninstall --cask or brew uninstall --formula from AppEntry tokens.
  • Install tab adds Uninstall and Refresh beside Install. Category expanders stay.
  • Empty Uninstall writes no brew args and sets StatusText to Nothing is selected.
  • Refresh re-runs brew list and updates checkboxes.
  • Tests: UninstallMissingIsOk, EmptyUninstallWritesNothing, RefreshDetectChecksBox, UninstallUsesCaskToken.
  • Out of scope: sudo brew, --zap, /Applications name match, Apple system app deletion.

Tradeoffs

Uninstall skips brew when brew list already omits the package, same as install skip when the package is present. If list is stale, stderr that contains not installed or No such keg is still success.

Blast Radius

Install footer and BrewClient change. Tweaks groups, Maintenance, and Updates stay. Opaque #1C1C1E and Name=MacUtil stay. Only catalog cask and formula names reach brew uninstall.

Verification

  • dotnet test --filter UninstallMissingIsOk passed.
  • dotnet test --filter EmptyUninstallWritesNothing passed.
  • dotnet test --filter RefreshDetectChecksBox passed.
  • dotnet test MacUtilGUI.Tests --configuration Release passed, 35 tests.
  • fantomas --check on the CI file set passed.
  • Review screenshot: /Users/test/.grok/docs/macutil-plan-media/mac-15-review.png with Uninstall and Refresh visible on the Install tab.

Do not merge.

@Cryptokid92
Cryptokid92 merged commit 019e25f into main Aug 29, 2026
3 of 4 checks passed
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