22 lines
383 B
Ruby
Raw Normal View History

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)
end
def self.visible
false
end
end
end
prepend Compat
end
end