diff options
| author | Adam Vandenberg | 2010-08-11 20:51:33 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-11 20:54:29 -0700 |
| commit | 77c70ec47260e286e2b205d8bef3d1baebf1fb48 (patch) | |
| tree | edac2ae3ad054778b7024117de558f9d6965234a /bin | |
| parent | 64cf554a7bf5e3f4212ebde7295df301241f679c (diff) | |
| download | brew-77c70ec47260e286e2b205d8bef3d1baebf1fb48.tar.bz2 | |
Add "brew uses --installed"
Passing --installed will limit the list to formulae that you have installed.
Documented this and "brew deps --1" which limits the dependency list to
one level down (direct dependencies).
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -258,7 +258,9 @@ begin # For each formula given, show which other formulas depend on it. # We only go one level up, ie. direct dependencies. when 'uses' - puts *ARGV.formulae.map{ |f| Formula.all.select{ |ff| ff.deps.include? f.name }.map{|f| f.name} }.flatten.uniq.sort + uses = ARGV.formulae.map{ |f| Formula.all.select{ |ff| ff.deps.include? f.name }.map{|f| f.name} }.flatten.uniq + uses = uses.select { |f| Formula.factory(f).installed? } if ARGV.include? "--installed" + puts *uses.sort when 'deps' require 'formula_installer' |
