Merge pull request #9096 from EricFromCanada/restore-brew-info
info: restore printing of statistics with `brew info`
This commit is contained in:
commit
8561fbf5c8
@ -90,20 +90,23 @@ module Homebrew
|
|||||||
raise FormulaOrCaskUnspecifiedError if args.no_named?
|
raise FormulaOrCaskUnspecifiedError if args.no_named?
|
||||||
|
|
||||||
exec_browser(*args.named.to_formulae_and_casks.map { |f| github_info(f) })
|
exec_browser(*args.named.to_formulae_and_casks.map { |f| github_info(f) })
|
||||||
|
elsif args.no_named?
|
||||||
|
print_statistics
|
||||||
else
|
else
|
||||||
print_info(args: args)
|
print_info(args: args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def print_analytics(args:)
|
def print_statistics
|
||||||
if args.no_named?
|
return unless HOMEBREW_CELLAR.exist?
|
||||||
if args.analytics?
|
|
||||||
Utils::Analytics.output(args: args)
|
|
||||||
elsif HOMEBREW_CELLAR.exist?
|
|
||||||
count = Formula.racks.length
|
count = Formula.racks.length
|
||||||
puts "#{count} #{"keg".pluralize(count)}, #{HOMEBREW_CELLAR.dup.abv}"
|
puts "#{count} #{"keg".pluralize(count)}, #{HOMEBREW_CELLAR.dup.abv}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def print_analytics(args:)
|
||||||
|
if args.no_named?
|
||||||
|
Utils::Analytics.output(args: args)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user