cmd/update-reset: use ShellCommand

This commit is contained in:
Ruoyu Zhong 2024-07-15 11:40:09 -04:00
parent 02aaf67d55
commit fdeb61094c
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 UpdateReset < AbstractCommand class UpdateReset < AbstractCommand
include ShellCommand
cmd_args do cmd_args do
description <<~EOS description <<~EOS
Fetch and reset Homebrew and all tap repositories (or any specified <repository>) using `git`(1) to their latest `origin/HEAD`. Fetch and reset Homebrew and all tap repositories (or any specified <repository>) using `git`(1) to their latest `origin/HEAD`.
@ -15,9 +18,6 @@ module Homebrew
named_args :repository named_args :repository
end end
sig { override.void }
def run = raise_sh_command_error!
end end
end end
end end