Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ—‘ Uninstall command #191

Merged
merged 12 commits into from Dec 27, 2018
Merged

πŸ—‘ Uninstall command #191

merged 12 commits into from Dec 27, 2018

Conversation

phatblat
Copy link
Member

@phatblat phatblat commented Dec 27, 2018

Added a new uninstall command for removing apps that have been installed from the Mac App Store. Note that this will not install other apps in the /Applications folder. Anything that shows up in mas list will be uninstallable.

Resolves #81

🀳🏻 Usage

Dry Run

To preview what would be removed.

$ mas list
406056744 Evernote (7.7)
...
$ mas uninstall 406056744 --dry-run
Evernote (/Applications/Evernote.app)
(not removed, dry run)

Wet Run

$ mas uninstall 406056744
Evernote (/Applications/Evernote.app)
moved to trash

βž• Trash command

For easy undo, this command uses the trash command, which is a new Homebrew dependency (formula).

πŸ’₯ Minimum OS Version

The trash command requires El Capitan (10.11) so adding this dependency changes the minimum OS version that mas will operate on. Specifically, this drops support for Yosemite (10.10) and Mavericks (10.9).

UI

Note that the trash command generates two UI prompts:

Security Permission

I believe this is a one time grant (assuming access is allowed).

screen shot 2018-12-27 at 2 00 01 pm

Auth

This dialog appears every time on a MacBook with TouchBar. Other Macs should get a password prompt.

screen shot 2018-12-27 at 2 28 52 pm

@masclibot
Copy link

1 Warning
⚠️ 😡 Big PR

Generated by 🚫 Danger

@phatblat phatblat merged commit 69844b5 into master Dec 27, 2018
@phatblat phatblat deleted the uninstall branch December 27, 2018 23:32
@rspeed
Copy link

rspeed commented Jan 1, 2019

I also appreciate the use of Evernote in the example, as it is software that truly deserves to be trashed.

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.

None yet

3 participants