Moved highlight_installed from utils.rb to search.rb

This commit is contained in:
Nath Tumlin 2017-03-11 16:25:02 -08:00
parent 4472daec2f
commit 6162a5e41f
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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)