2017-05-20 19:08:03 +02:00
|
|
|
require "cask/lib/hbc/cli/abstract_command"
|
2016-12-30 16:13:09 +01:00
|
|
|
|
2016-12-16 19:40:10 +01:00
|
|
|
module Hbc
|
|
|
|
class CLI
|
2017-05-20 19:08:03 +02:00
|
|
|
class Update < AbstractCommand
|
2016-12-16 19:40:10 +01:00
|
|
|
def self.run(*_ignored)
|
|
|
|
odeprecated "`brew cask update`", "`brew update`", disable_on: Time.utc(2017, 7, 1)
|
|
|
|
result = SystemCommand.run(HOMEBREW_BREW_FILE, args: ["update"],
|
|
|
|
print_stderr: true,
|
|
|
|
print_stdout: true)
|
|
|
|
exit result.exit_status
|
|
|
|
end
|
|
|
|
|
2016-12-30 16:46:27 +01:00
|
|
|
def self.visible
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2016-12-16 19:40:10 +01:00
|
|
|
def self.help
|
2016-12-30 16:46:27 +01:00
|
|
|
"a synonym for 'brew update'"
|
2016-12-16 19:40:10 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|