Moved highlight_installed from utils.rb to search.rb
This commit is contained in:
parent
4472daec2f
commit
6162a5e41f
@ -53,6 +53,13 @@ module Hbc
|
|||||||
puts Formatter.columns(highlighted)
|
puts Formatter.columns(highlighted)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.highlight_installed(token)
|
||||||
|
if Hbc::Cask.new(token).installed?
|
||||||
|
token = pretty_installed token
|
||||||
|
end
|
||||||
|
token
|
||||||
|
end
|
||||||
|
|
||||||
def self.help
|
def self.help
|
||||||
"searches all known Casks"
|
"searches all known Casks"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -36,13 +36,6 @@ def odebug(title, *sput)
|
|||||||
puts sput unless sput.empty?
|
puts sput unless sput.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
def highlight_installed(token)
|
|
||||||
if Hbc::Cask.new(token).installed?
|
|
||||||
token = pretty_installed token
|
|
||||||
end
|
|
||||||
token
|
|
||||||
end
|
|
||||||
|
|
||||||
module Hbc
|
module Hbc
|
||||||
module Utils
|
module Utils
|
||||||
def self.gain_permissions_remove(path, command: SystemCommand)
|
def self.gain_permissions_remove(path, command: SystemCommand)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user