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

install with options #17

Closed
znz opened this issue Oct 21, 2013 · 14 comments
Closed

install with options #17

znz opened this issue Oct 21, 2013 · 14 comments
Labels

Comments

@znz
Copy link

znz commented Oct 21, 2013

I want to brew install with options.
For example, brew install --cocoa emacs.

@jamesaanderson
Copy link
Contributor

I'll work on adding it.

@jamesaanderson
Copy link
Contributor

@andrew @znz Syntax wise I'm thinking something like:

brew 'emacs', '--cocoa'

or

brew 'emacs', args: 'cocoa'

The second would allow us to add version functionality in the future. What do you think?

@andrew
Copy link
Contributor

andrew commented Oct 22, 2013

I prefer the hash-like syntax, as you said, allows for future additional options too.

@znz
Copy link
Author

znz commented Oct 22, 2013

I prefer hash too.
How to pass multiple options?

brew 'emacs', args: 'cocoa srgb with-gnutls'

or

brew 'emacs', args: ['cocoa', 'srgb', 'with-gnutls']

or both?

@jamesaanderson
Copy link
Contributor

@znz I prefer the array

@andrew
Copy link
Contributor

andrew commented Oct 22, 2013

Array looks good to me too

@ghost ghost assigned jamesaanderson Oct 22, 2013
@jamesaanderson
Copy link
Contributor

@znz Sorry. I haven't had time to work on it. Feel free to submit a PR otherwise when I have a chance I'll submit a fix.

@christianbundy
Copy link

Hey @znz, just wanted to let you know that you can do this with native homebrew with a Brewfile that looks like:

# This is my brewfile
install emacs --cocoa

You can also read the discussion about this feature if you'd like. Let me know if this suits your needs!

@znz
Copy link
Author

znz commented Nov 17, 2013

Thanks you for your information.
It suits my needs.

@znz znz closed this as completed Nov 17, 2013
@jaredmoody
Copy link

Can this be re-opened? Since native homebrew Brewfiles were deprecated, it seems like there's not a way do this. I'd like to use brewdler but need to pass options.

@jamesaanderson
Copy link
Contributor

I'll try and work on this over the weekend

@jamesaanderson jamesaanderson reopened this Oct 9, 2014
jamesaanderson added a commit that referenced this issue Oct 13, 2014
@jaredmoody
Copy link

Thanks!

@andrew
Copy link
Contributor

andrew commented Oct 13, 2014

Thanks @jamesaanderson, in future can you open pull requests for changes so people can review the change, cheers!

@andrew
Copy link
Contributor

andrew commented Oct 13, 2014

Can you also add some documentation to the readme.

@lock lock bot added the outdated label Jan 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants