From 23db47dba59c64b214b68dfe4d6b8e8b9f90bcc4 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Mon, 15 Jul 2024 11:39:34 -0400 Subject: [PATCH] cmd/--repository: use `ShellCommand` --- Library/Homebrew/cmd/--repository.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/--repository.rb b/Library/Homebrew/cmd/--repository.rb index a42d16fc52..c5ac522a13 100644 --- a/Library/Homebrew/cmd/--repository.rb +++ b/Library/Homebrew/cmd/--repository.rb @@ -2,10 +2,13 @@ # frozen_string_literal: true require "abstract_command" +require "shell_command" module Homebrew module Cmd class Repository < AbstractCommand + include ShellCommand + sig { override.returns(String) } def self.command_name = "--repository" @@ -18,9 +21,6 @@ module Homebrew named_args :tap end - - sig { override.void } - def run = raise_sh_command_error! end end end