Add command 'brew info --all'.
This commit is contained in:
parent
7366a41268
commit
411874e0b6
10
bin/brew
10
bin/brew
@ -181,7 +181,15 @@ begin
|
||||
|
||||
when 'info', 'abv'
|
||||
if ARGV.named.empty?
|
||||
puts `ls #{HOMEBREW_CELLAR} | wc -l`.strip+" kegs, "+HOMEBREW_CELLAR.abv
|
||||
if ARGV.include? "--all"
|
||||
require 'formula'
|
||||
Formulary.names.each do |name|
|
||||
info name
|
||||
puts '---'
|
||||
end
|
||||
else
|
||||
puts `ls #{HOMEBREW_CELLAR} | wc -l`.strip+" kegs, "+HOMEBREW_CELLAR.abv
|
||||
end
|
||||
elsif ARGV[0][0..6] == 'http://'
|
||||
puts Pathname.new(ARGV.shift).version
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user