cmd/update-reset.rb: the named args are repos not taps

This commit is contained in:
Ruoyu Zhong 2024-07-14 23:09:53 -04:00
parent 913ea0e5e4
commit e806870f85
No known key found for this signature in database
6 changed files with 4 additions and 8 deletions

View File

@ -13,7 +13,7 @@ module Homebrew
*Note:* this will destroy all your uncommitted or committed changes. *Note:* this will destroy all your uncommitted or committed changes.
EOS EOS
named_args :tap named_args :repository
end end
sig { override.void } sig { override.void }

View File

@ -2666,7 +2666,6 @@ _brew_update_reset() {
;; ;;
*) ;; *) ;;
esac esac
__brew_complete_tapped
} }
_brew_update_sponsors() { _brew_update_sponsors() {

View File

@ -1711,7 +1711,6 @@ __fish_brew_complete_arg 'update-reset' -l debug -d 'Display any debugging infor
__fish_brew_complete_arg 'update-reset' -l help -d 'Show this message' __fish_brew_complete_arg 'update-reset' -l help -d 'Show this message'
__fish_brew_complete_arg 'update-reset' -l quiet -d 'Make some output more quiet' __fish_brew_complete_arg 'update-reset' -l quiet -d 'Make some output more quiet'
__fish_brew_complete_arg 'update-reset' -l verbose -d 'Make some output more verbose' __fish_brew_complete_arg 'update-reset' -l verbose -d 'Make some output more verbose'
__fish_brew_complete_arg 'update-reset' -a '(__fish_brew_suggest_taps_installed)'
__fish_brew_complete_cmd 'update-sponsors' 'Update the list of GitHub Sponsors in the `Homebrew/brew` README' __fish_brew_complete_cmd 'update-sponsors' 'Update the list of GitHub Sponsors in the `Homebrew/brew` README'

View File

@ -2120,9 +2120,7 @@ _brew_update_reset() {
'--debug[Display any debugging information]' \ '--debug[Display any debugging information]' \
'--help[Show this message]' \ '--help[Show this message]' \
'--quiet[Make some output more quiet]' \ '--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \ '--verbose[Make some output more verbose]'
- tap \
'*::tap:__brew_any_tap'
} }
# brew update-sponsors # brew update-sponsors

View File

@ -1311,7 +1311,7 @@ and perform any necessary migrations.
: Display a trace of all shell commands as they are executed. : Display a trace of all shell commands as they are executed.
### `update-reset` \[*`tap`* ...\] ### `update-reset` \[*`repository`* ...\]
Fetch and reset Homebrew and all tap repositories (or any specified Fetch and reset Homebrew and all tap repositories (or any specified
*`repository`*) using `git`(1) to their latest `origin/HEAD`. *`repository`*) using `git`(1) to their latest `origin/HEAD`.

View File

@ -819,7 +819,7 @@ Print the directories checked and \fBgit\fP operations performed\.
.TP .TP
\fB\-d\fP, \fB\-\-debug\fP \fB\-d\fP, \fB\-\-debug\fP
Display a trace of all shell commands as they are executed\. Display a trace of all shell commands as they are executed\.
.SS "\fBupdate\-reset\fP \fR[\fItap\fP \.\.\.]" .SS "\fBupdate\-reset\fP \fR[\fIrepository\fP \.\.\.]"
Fetch and reset Homebrew and all tap repositories (or any specified \fIrepository\fP) using \fBgit\fP(1) to their latest \fBorigin/HEAD\fP\&\. Fetch and reset Homebrew and all tap repositories (or any specified \fIrepository\fP) using \fBgit\fP(1) to their latest \fBorigin/HEAD\fP\&\.
.P .P
\fINote:\fP this will destroy all your uncommitted or committed changes\. \fINote:\fP this will destroy all your uncommitted or committed changes\.