mas-cli / mas

:package: Mac App Store command line interface
MIT License
10.82k stars 273 forks source link

Version pinning #386

Open bosconb opened 3 years ago

bosconb commented 3 years ago

Please add a mechanism to exclude a list of apps from being output or affected by mas outdated or mas upgrade.

Both a command-line option and a file-based config could be useful, the former for one-off exclusion, the latter for ongoing exclusion.

chris-araman commented 3 years ago

This sounds like version pinning. Something like brew pin seems like it might address this.

We could persist this in a property list.

justinmayer commented 11 months ago

Until mas outdated has the ability to suppress unhelpful messages like…

Warning: Identifier XXXXXXXXXX not found in store. Was expected to identify <NAME_OF_APP>.

… I found two ways to handle it in the interim. One is by suppressing stderr:

mas outdated 2>/dev/null

The other way is more "surgical" and allows other warnings and errors to be displayed:

script -q /dev/null mas outdated | grep -v "not found in store"

Hope this is of help to someone. ✨