brew info: include options to dependencies in display
This commit is contained in:
parent
0296439c83
commit
05a027423a
@ -165,9 +165,13 @@ module Homebrew
|
||||
|
||||
def decorate_dependencies(dependencies)
|
||||
deps_status = dependencies.collect do |dep|
|
||||
dep.installed? ? pretty_installed(dep) : pretty_uninstalled(dep)
|
||||
if dep.satisfied?([])
|
||||
pretty_installed(dep_display_s(dep))
|
||||
else
|
||||
pretty_uninstalled(dep_display_s(dep))
|
||||
end
|
||||
end
|
||||
deps_status * ", "
|
||||
deps_status.join(", ")
|
||||
end
|
||||
|
||||
def decorate_requirements(requirements)
|
||||
@ -177,4 +181,9 @@ module Homebrew
|
||||
end
|
||||
req_status.join(", ")
|
||||
end
|
||||
|
||||
def dep_display_s(dep)
|
||||
return dep.name if dep.option_tags.empty?
|
||||
"#{dep.name} #{dep.option_tags.map { |o| "--#{o}" }.join(" ")}"
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user