aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/uses.rb
AgeCommit message (Collapse)Author
2016-10-15Convert `puts_columns` to `puts Formatter.columns`.Markus Reiter
2016-10-15Don’t use `puts_columns` if `empty?` or single item.Markus Reiter
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-11cmd/uses: fix Rubocop warnings.Mike McQuaid
2016-06-11deps should respect skip-recommendedilovezfs
For example, `brew deps libass --skip-recommended` shouldn't print harfbuzz because, even though libass builds with harfbuzz when harfbuzz is not skipped, we asked to skip recommended, of which harfbuzz is one. The corresponding change is made for `brew uses` as well. Thanks to Xu Cheng for contributing the code. Any errors are mine. Closes #129. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-04-16uses/deps: default to skip optional/build deps.Xu Cheng
Also add options to include optional/build deps and an option to skip recommended deps. Closes Homebrew/legacy-homebrew#50066.
2016-04-10Add all the top level commentsMax Nordlund
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-15uses: rescue TapFormulaAmbiguityError caused by Dependency#to_formulaXu Cheng
Fixes Homebrew/homebrew#40636.
2015-06-07requirement: allow access default_formula directlyXu Cheng
2015-05-29uses: use Formula#full_nameXu Cheng
2015-05-20uses/deps: fix for recursive deps/reqsXu Cheng
Closes Homebrew/homebrew#39906. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-20uses: make skip arguments work for requirementXu Cheng
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 Homebrew/homebrew#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 Homebrew/homebrew#36154. Closes Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#27259. Closes Homebrew/homebrew#27295. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-12uses: fix weird colon output.Mike McQuaid
Closes Homebrew/homebrew#24145.
2013-10-30uses: display requirements.Mike McQuaid
Closes Homebrew/homebrew#23758.
2013-06-26Reword uses commentAdam Vandenberg
2013-06-26uses: fail fast if invalid formula names are givenJack Nagel
Fixes Homebrew/homebrew#20819.
2013-01-26uses: utilize modern dependency APIJack Nagel
2013-01-14Fix uses cmdChad Catlett
Fixes Homebrew/homebrew#17074. Closes Homebrew/homebrew#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 Homebrew/homebrew#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.