blob: 4a9e0b7b32dc0e4527278c1fbb0d000ac388407a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#: * `missing` [<formulae>]:
#: Check the given <formulae> for missing dependencies. If no <formulae> are
#: given, check all installed brews.
require "formula"
require "tab"
require "diagnostic"
module Homebrew
module_function
def missing
return unless HOMEBREW_CELLAR.exist?
ff = if ARGV.named.empty?
Formula.installed
else
ARGV.resolved_formulae
end
Diagnostic.missing_deps(ff, ARGV.value("hide")) do |name, missing|
print "#{name}: " if ff.size > 1
puts missing.join(" ")
end
end
end
|