diff --git a/Library/Homebrew/cask/cmd/abstract_command.rb b/Library/Homebrew/cask/cmd/abstract_command.rb index 1646ddb943..605bea5e4d 100644 --- a/Library/Homebrew/cask/cmd/abstract_command.rb +++ b/Library/Homebrew/cask/cmd/abstract_command.rb @@ -2,12 +2,14 @@ require_relative "options" require "search" +require "utils" module Cask class Cmd class AbstractCommand include Options include Homebrew::Search + include Utils option "--[no-]binaries", :binaries, true option "--debug", :debug, false diff --git a/Library/Homebrew/cask/cmd/info.rb b/Library/Homebrew/cask/cmd/info.rb index a09291bce0..1f4fd7e90b 100644 --- a/Library/Homebrew/cask/cmd/info.rb +++ b/Library/Homebrew/cask/cmd/info.rb @@ -46,6 +46,7 @@ module Cask def self.info(cask) puts get_info(cask) + Analytics.cask_output(cask) end def self.title_info(cask) diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index eea5d8fe18..40896e5aec 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -178,6 +178,7 @@ module Utils puts "#{category}: #{analytics.join(", ")}" unless full_analytics end end + alias cask_output formula_output def custom_prefix_label "custom-prefix"