brew/Library/Homebrew/cmd/update-reset.rb

24 lines
531 B
Ruby
Raw Permalink Normal View History

# typed: strict
# frozen_string_literal: true
require "abstract_command"
2024-07-15 11:40:09 -04:00
require "shell_command"
module Homebrew
module Cmd
class UpdateReset < AbstractCommand
2024-07-15 11:40:09 -04:00
include ShellCommand
cmd_args do
description <<~EOS
Fetch and reset Homebrew and all tap repositories (or any specified <repository>) using `git`(1) to their latest `origin/HEAD`.
*Note:* this will destroy all your uncommitted or committed changes.
EOS
named_args :repository
end
end
end
end