Skip to content

Commit

Permalink
Add 'brew deps --all'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Aug 13, 2010
1 parent 4885c89 commit bed8867
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,15 @@ begin
puts *uses.sort

when 'deps'
require 'formula_installer'
if ARGV.include?("-1") or ARGV.include?("--1")
if ARGV.include?('--all')
require 'formula'
Formula.all.each do |f|
puts "#{f.name}:#{f.deps.join(' ')}"
end
elsif ARGV.include?("-1") or ARGV.include?("--1")
puts *ARGV.formulae.map{ |f| f.deps or [] }.flatten.uniq.sort
else
require 'formula_installer'
puts *ARGV.formulae.map{ |f| FormulaInstaller.expand_deps(f).map{|f| f.name} }.flatten.uniq.sort
end

Expand Down

0 comments on commit bed8867

Please sign in to comment.