From 139ca1d3749520d7c43fd1f3f24f4c63b3f539d7 Mon Sep 17 00:00:00 2001 From: Tharun Date: Sun, 17 May 2020 00:31:12 +0530 Subject: [PATCH] Updated analytics method name for cask info --- Library/Homebrew/cask/cmd/abstract_command.rb | 2 ++ Library/Homebrew/cask/cmd/info.rb | 1 + Library/Homebrew/utils/analytics.rb | 1 + 3 files changed, 4 insertions(+) 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"