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