diff options
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli/update.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/update.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/update.rb b/Library/Homebrew/cask/lib/hbc/cli/update.rb new file mode 100644 index 000000000..ceb947544 --- /dev/null +++ b/Library/Homebrew/cask/lib/hbc/cli/update.rb @@ -0,0 +1,16 @@ +class Hbc::CLI::Update < Hbc::CLI::Base + def self.run(*_ignored) + result = Hbc::SystemCommand.run(Hbc.homebrew_executable, + args: %w[update]) + # TODO: separating stderr/stdout is undesirable here. + # Hbc::SystemCommand should have an option for plain + # unbuffered output. + print result.stdout + $stderr.print result.stderr + exit result.exit_status + end + + def self.help + "a synonym for 'brew update'" + end +end |
