aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/uses.rb
AgeCommit message (Collapse)Author
2015-04-08uses: also check the default formulae.Mike McQuaid
This means e.g. `elixir` will show up as using `erlang`.
2015-03-08uses: remove unused variable.Mike McQuaid
2015-02-11brew uses: parse ARGV properlyXu Cheng
`ARGV.flag?` = `ARGV.include?` + `ARGV.switch?` Closes #36727. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-09test-bot: only test the runtime dependencies.Xu Cheng
Also add support to `brew uses` to ignore build or optional dependencies. Closes #36154. Closes #36656. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-27uses: harden against missing formulae.Mike McQuaid
2014-12-23Convert dependencies to formulas for name matchingKevin Sjöberg
Dependency names are prefixed with the tap location, therefore dependency names do not match formula names. We convert dependencies into formulas to ensure proper name checking. Closes #35058. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-04-07Restore documented behavior of `brew uses foo bar`Jack Nagel
`brew uses foo bar` is supposed to return the intersection of formulae that use foo and bar. However, this was broken by changes made to support requirements that can coerce to regular dependencies.
2014-04-07uses: only check ARGV for recursive flag onceJack Nagel
2014-03-07uses: fix `--installed` with outdated versionsJaime Marquínez Ferrándiz
With that option iterate only over `Formula.installed`, otherwise iterate over `Formula`. This is faster than iterating over all the formulae and checking if it's installed. Fixes #27259. Closes #27295. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-12uses: fix weird colon output.Mike McQuaid
Closes #24145.
2013-10-30uses: display requirements.Mike McQuaid
Closes #23758.
2013-06-26Reword uses commentAdam Vandenberg
2013-06-26uses: fail fast if invalid formula names are givenJack Nagel
Fixes #20819.
2013-01-26uses: utilize modern dependency APIJack Nagel
2013-01-14Fix uses cmdChad Catlett
Fixes #17074. Closes #17075. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-21Formula.EnumerableMax Howell
Deprecated Formula.all, replaced usage with more appropriate enumerable options. Just check out how much nicer `brew audit` runs now.
2012-03-16Add `brew uses --recursive`Adam Vandenberg
Closes #8870.
2012-02-04Warn the user of required argumentsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-03uses: do nothing if no argsAdam Vandenberg
2011-11-28uses.rb: Pass a block to map instead of a ProcCharlie Sharpsteen
Passing a `Proc` doesn't work in Ruby 1.8.6 which causes `brew uses` to fail on Leopard.
2011-08-24Prettier brew uses output (columnate)Max Howell
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.