completions/zsh: add-cask-option

This commit is contained in:
hyuraku 2021-01-06 00:00:57 +09:00
parent 7360880780
commit 7e2db0cd3d

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' \
} }