22 lines
420 B
Ruby
Raw Normal View History

2018-09-03 20:17:29 +01:00
require "cask/cmd/abstract_command"
require "cmd/search"
2018-09-06 08:29:14 +02:00
module Cask
2018-09-04 08:45:48 +01:00
class Cmd
module Compat
class Search < AbstractCommand
def run
odeprecated "`brew cask search`", "`brew search`", disable_on: Time.new(2018, 9, 30)
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