diff --git a/Library/Homebrew/cmd/--version.rb b/Library/Homebrew/cmd/--version.rb index 7cd4770874..bcaca65d2c 100644 --- a/Library/Homebrew/cmd/--version.rb +++ b/Library/Homebrew/cmd/--version.rb @@ -2,10 +2,13 @@ # frozen_string_literal: true require "abstract_command" +require "shell_command" module Homebrew module Cmd class Version < AbstractCommand + include ShellCommand + sig { override.returns(String) } def self.command_name = "--version" @@ -15,9 +18,6 @@ module Homebrew Homebrew/homebrew-cask (if tapped) to standard output. EOS end - - sig { override.void } - def run = raise_sh_command_error! end end end