From 6162a5e41f0a0e6d74d5a627ab8d9e7f1ddd3966 Mon Sep 17 00:00:00 2001 From: Nath Tumlin Date: Sat, 11 Mar 2017 16:25:02 -0800 Subject: [PATCH] Moved highlight_installed from utils.rb to search.rb --- Library/Homebrew/cask/lib/hbc/cli/search.rb | 7 +++++++ Library/Homebrew/cask/lib/hbc/utils.rb | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) 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)