blob: ceb9475442e24e27e5f05d1719435d7429e221da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|