Merge pull request #4287 from apjanke/zsh-brew-cask-upgrade-completion

zsh completions: add brew cask upgrade
This commit is contained in:
Mike McQuaid 2018-06-06 09:12:32 +01:00 committed by GitHub
commit 1cd86fc551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}