diff options
| author | Markus Reiter | 2016-12-16 19:40:10 +0100 |
|---|---|---|
| committer | Markus Reiter | 2016-12-30 14:01:43 +0100 |
| commit | a1154e9fabcca4feca629f86e86d139768f0de48 (patch) | |
| tree | f5ca89d0f01018648d3d1045c99780366dd993b8 /Library/Homebrew/compat | |
| parent | 0f8cb4ba277968fb24bf438468b37466075fd18a (diff) | |
| download | brew-a1154e9fabcca4feca629f86e86d139768f0de48.tar.bz2 | |
Deprecate `brew cask update`.
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/hbc/cli/update.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/hbc/cli/update.rb b/Library/Homebrew/compat/hbc/cli/update.rb new file mode 100644 index 000000000..32186472b --- /dev/null +++ b/Library/Homebrew/compat/hbc/cli/update.rb @@ -0,0 +1,17 @@ +module Hbc + class CLI + class Update < Base + 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 + + def self.help + "a synonym for 'brew update'" + end + end + end +end |
