Merge pull request #10226 from hyuraku/completions/zsh_add-cask-option

completions/zsh: add-cask-option
This commit is contained in:
Mike McQuaid 2021-01-21 12:08:11 +00:00 committed by GitHub
commit 91759ac3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -660,6 +660,7 @@ _brew_readall() {
} }
# brew reinstall formulae: # brew reinstall formulae:
# brew reinstall --cask casks:
# mostly copy from brew install # mostly copy from brew install
_brew_reinstall() { _brew_reinstall() {
_arguments \ _arguments \
@ -672,7 +673,10 @@ _brew_reinstall() {
'*::formula:__brew_installed_formulae' \ '*::formula:__brew_installed_formulae' \
- interactive-install \ - interactive-install \
'--interactive[download and patch formula, then open a shell]' \ '--interactive[download and patch formula, then open a shell]' \
'::formula:__brew_installed_formulae' '::formula:__brew_installed_formulae' \
- cask-install \
'--cask[reinstall casks]' \
': :__brew_all_casks' \
} }
# brew search, -S: # brew search, -S:
@ -850,6 +854,7 @@ _brew_update_test() {
} }
# brew upgrade [install-options] [--cleanup] [--fetch-HEAD] [formulae] # brew upgrade [install-options] [--cleanup] [--fetch-HEAD] [formulae]
# brew upgrade --cask [casks]
# install-options is copied from brew install # install-options is copied from brew install
_brew_upgrade() { _brew_upgrade() {
_arguments \ _arguments \
@ -872,6 +877,9 @@ _brew_upgrade() {
'--interactive[download and patch formula, then open a shell]' \ '--interactive[download and patch formula, then open a shell]' \
'--git' \ '--git' \
': : __brew_outdated_formulae' ': : __brew_outdated_formulae'
- cask-install \
'--cask[reinstall casks]' \
': :__brew_all_casks' \
} }