diff options
| author | Nath Tumlin | 2017-03-11 16:25:02 -0800 |
|---|---|---|
| committer | Nath Tumlin | 2017-03-11 16:25:02 -0800 |
| commit | 6162a5e41f0a0e6d74d5a627ab8d9e7f1ddd3966 (patch) | |
| tree | c4294a7b4e12eb8befaa7e58dfbde2d67572a680 /Library | |
| parent | 4472daec2f0e98214cb0337ec9411ed62d700082 (diff) | |
| download | brew-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.rb | 7 | ||||
| -rw-r--r-- | 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 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) |
