diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb index a054358db9..cc86576325 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/search.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb @@ -53,6 +53,13 @@ module Hbc puts Formatter.columns(highlighted) end + def self.highlight_installed(token) + if Hbc::Cask.new(token).installed? + token = pretty_installed token + end + token + end + def self.help "searches all known Casks" end diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index 32db3c2614..ef3e5eda37 100644 --- a/Library/Homebrew/cask/lib/hbc/utils.rb +++ b/Library/Homebrew/cask/lib/hbc/utils.rb @@ -36,13 +36,6 @@ def odebug(title, *sput) puts sput unless sput.empty? end -def highlight_installed(token) - if Hbc::Cask.new(token).installed? - token = pretty_installed token - end - token -end - module Hbc module Utils def self.gain_permissions_remove(path, command: SystemCommand)