brew/Library/Homebrew/cmd/missing.rb

21 lines
365 B
Ruby
Raw Normal View History

require "formula"
require "tab"
require "diagnostic"
module Homebrew
def missing
return unless HOMEBREW_CELLAR.exist?
ff = if ARGV.named.empty?
Formula.installed
else
2015-05-17 21:02:54 +08:00
ARGV.resolved_formulae
end
Diagnostic.missing_deps(ff) do |name, missing|
print "#{name}: " if ff.size > 1
puts "#{missing * " "}"
end
end
end