-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add the ability to 'add' mas
dependencies to Brewfile
#4
Comments
Thank you so much for this detailed write-up! This is very helpful. In addition, dumping |
I think all three ways of specifying The form of a For example, this line would add the mas app with the ID brew add 1482454543 497799835:xcode :bear 7777 firefox To add the mas app with an ID of Now, this is just one way of solving it. The advantage of using the colon separator this way is that it allows for there to be no confusion about what is meant to be a If you have any different ideas or improvements to this one, please let me know. Also, I swapped the order of the |
I like your suggested implementation for a few reasons:
The only other things I'll note are...
|
After digging a little bit through the whalebrew repo, I don't think we need to worry about our regex. It seems like whalebrew formulae don't include |
Regarding supporting names in quotes, I believe the shell itself can already handle that. By putting single quotes, double quotes, or escaping spaces, the name will be interpreted as one name once it is received by the argument parser. For example, with current functionality, typing any of these: brew add :"Canary Mail"
brew add :'Canary Mail'
brew add :Canary\ Mail
brew add :Canary' 'Mail
brew add ':Canary Mail' Outputs the same exact error message:
Built-in commands like |
Goal
Add the ability to add Brewfile lines of the following format:
mas "name", id: 12345678
Assumptions
mas
for install, only the "id" does (mas install [ID]
)mas
from installing applications that have not been previously purchased/installed on a Mac by the active Apple ID - mas known issuesPotential Command Structures
brew add --mas [PARAM(S)]
brew add --cask/formula
brew mas [PARAM(S)]
brew drop
/brew mas drop
Potential Params
Only [ID]
mas list
if it was previously installed (Assumption 2)brew add
runsmas info [ID]
to get the app's "name" automaticallyOnly [NAME]
mas list
if it was previously installed (Assumption 2)brew add
runsmas search [NAME]
to get the app's "id" automatically - might require parsing and user input if a direct match is not foundBoth [NAME:ID]
mas list
if it was previously installed (Assumption 2)brew add
does not need to invokemas info
ormas search
Inspiration/Reference
brew bundle dump
implementation formas
dependencies: mac_app_store_dumper_spec.rbThe text was updated successfully, but these errors were encountered: