cmd, cask: info prints whether installed
This commit is contained in:
parent
2f58aaa285
commit
4e7d128604
@ -48,7 +48,7 @@ module Cask
|
|||||||
Formatter.error("does not exist")
|
Formatter.error("does not exist")
|
||||||
end
|
end
|
||||||
|
|
||||||
"#{versioned_staged_path} (#{path_details})\n"
|
"Installed\n#{versioned_staged_path} (#{path_details})\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.name_info(cask)
|
def self.name_info(cask)
|
||||||
|
@ -301,6 +301,7 @@ module Homebrew
|
|||||||
if kegs.empty?
|
if kegs.empty?
|
||||||
puts "Not installed"
|
puts "Not installed"
|
||||||
else
|
else
|
||||||
|
puts "Installed"
|
||||||
kegs.each do |keg|
|
kegs.each do |keg|
|
||||||
puts "#{keg} (#{keg.abv})#{" *" if keg.linked?}"
|
puts "#{keg} (#{keg.abv})#{" *" if keg.linked?}"
|
||||||
tab = Tab.for_keg(keg).to_s
|
tab = Tab.for_keg(keg).to_s
|
||||||
|
@ -64,6 +64,7 @@ module Homebrew
|
|||||||
puts unless i.zero?
|
puts unless i.zero?
|
||||||
info = "#{tap}: "
|
info = "#{tap}: "
|
||||||
if tap.installed?
|
if tap.installed?
|
||||||
|
info += "Installed"
|
||||||
info += if (contents = tap.contents).blank?
|
info += if (contents = tap.contents).blank?
|
||||||
"no commands/casks/formulae"
|
"no commands/casks/formulae"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user