aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNath Tumlin2017-03-11 16:25:02 -0800
committerNath Tumlin2017-03-11 16:25:02 -0800
commit6162a5e41f0a0e6d74d5a627ab8d9e7f1ddd3966 (patch)
treec4294a7b4e12eb8befaa7e58dfbde2d67572a680 /Library
parent4472daec2f0e98214cb0337ec9411ed62d700082 (diff)
downloadbrew-6162a5e41f0a0e6d74d5a627ab8d9e7f1ddd3966.tar.bz2
Moved highlight_installed from utils.rb to search.rb
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/search.rb7
-rw-r--r--Library/Homebrew/cask/lib/hbc/utils.rb7
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 a054358db..cc8657632 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 32db3c261..ef3e5eda3 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)