`open` specific tabs in the Mac App Store
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 12.4k
- Forks
- 299
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 1
Description
Each of the left sidebar tabs, and some other standard pages, of the Mac App Store can be opened with URLs like:
# macappstore://?action=<lower case tab name> opens the corresponding tab from the left sidebar
macappstore://?action=discover
macappstore://?action=updates
…
# opens the 'Account Settings' floating page, which is not a tab
macappstore://?action=account
# opens the 'Redeem Gift Card' floating page, which is not a tab
macappstore://?action=redeem
# opens the list of purchased apps that you normally access from the bottom of the left sidebar from the tab labelled with your Apple Account profile avatar & name
macappstore://?action=purchased
Maybe we should allow users to open these tabs via mas open.
To specify an action on the command line, which of the following options do you prefer for the example of updates:
mas open --updates
mas open --action updates
mas open --action-updates
mas open --action:updates
…
I prefer mas open --action updates.
We could either limit the options to the known valid actions (which would require updating the list of actions whenever valid actions are changed or discovered), or we could allow any ad hoc value for action. Any value that is unrecognized just opens the App Store to the most recent tab & outputs the original spurious error dialog. If we allow ad hoc values, I would go for an option syntax that begins with --action, because maybe we might want to add other options to open that could clash with an existing or new action/tab name.
I can easily implement whatever syntax & behavior you prefer.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the mas open command and its argument parsing. Review how App Store URLs are currently opened, then define the accepted action syntax and behavior for the listed actions. Done means mas open --action updates and the other supported actions open the corresponding Mac App Store page, with invalid values handled consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- cli, desktop
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100