zsh completions: add brew cask upgrade

This commit is contained in:
Andrew Janke 2018-06-06 00:32:08 -04:00
parent 22e9fd7729
commit b70d65c726

View File

@ -49,6 +49,7 @@ __brew_cask_commands() {
'search:searches all known Casks'
'style:checks Cask style using RuboCop'
'uninstall:uninstalls the given Cask'
'upgrade:upgrade installed Casks with newer versions'
'zap:zaps all files associated with the given Cask'
)
_describe -t commands "brew cask command" commands
@ -159,6 +160,13 @@ _brew_cask_uninstall() {
'*::token:__brew_installed_casks'
}
_brew_cask_upgrade() {
_arguments : \
'--force:upgrade even if Cask is not present, and --force the install' \
'--greedy:also upgrade Casks with auto_updates or version \:latest' \
'*::token:__brew_installed_casks'
}
_brew_cask_zap() {
__brew_all_casks
}