mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cmd/--version: use ShellCommand
This commit is contained in:
parent
23db47dba5
commit
06610bf807
@ -2,10 +2,13 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "abstract_command"
|
require "abstract_command"
|
||||||
|
require "shell_command"
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
module Cmd
|
module Cmd
|
||||||
class Version < AbstractCommand
|
class Version < AbstractCommand
|
||||||
|
include ShellCommand
|
||||||
|
|
||||||
sig { override.returns(String) }
|
sig { override.returns(String) }
|
||||||
def self.command_name = "--version"
|
def self.command_name = "--version"
|
||||||
|
|
||||||
@ -15,9 +18,6 @@ module Homebrew
|
|||||||
Homebrew/homebrew-cask (if tapped) to standard output.
|
Homebrew/homebrew-cask (if tapped) to standard output.
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { override.void }
|
|
||||||
def run = raise_sh_command_error!
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user