2018-06-09 15:40:44 +02:00
|
|
|
require "hbc/cli/abstract_command"
|
|
|
|
require "cmd/search"
|
|
|
|
|
|
|
|
module Hbc
|
|
|
|
class CLI
|
|
|
|
module Compat
|
|
|
|
class Search < AbstractCommand
|
|
|
|
def run
|
|
|
|
odeprecated "`brew cask search`", "`brew search`"
|
2018-06-23 01:31:16 +02:00
|
|
|
Homebrew.search(args.empty? ? "--casks" : args)
|
2018-06-09 15:40:44 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.visible
|
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
prepend Compat
|
|
|
|
end
|
|
|
|
end
|