cmd/--repository: use ShellCommand

This commit is contained in:
Ruoyu Zhong 2024-07-15 11:39:34 -04:00
parent d611e3e0f9
commit 23db47dba5
No known key found for this signature in database

View File

@ -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 Repository < AbstractCommand class Repository < AbstractCommand
include ShellCommand
sig { override.returns(String) } sig { override.returns(String) }
def self.command_name = "--repository" def self.command_name = "--repository"
@ -18,9 +21,6 @@ module Homebrew
named_args :tap named_args :tap
end end
sig { override.void }
def run = raise_sh_command_error!
end end
end end
end end