Merge pull request #7288 from Moisan/pr_pull_zsh_completions

completions/zsh: add 'pr-pull' options
This commit is contained in:
Mike McQuaid 2020-04-05 16:39:14 +01:00 committed by GitHub
commit 2573bf0461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -569,6 +569,23 @@ _brew_pull() {
'*:patch source: ' '*:patch source: '
} }
# brew pr-pull [--no-upload|--no-publish] [--dry-run] [--clean] [--branch-okay]
# [--resolve] [--workflow] [--artifact] [--bintray-org] [--tap] pull_request
_brew_pr_pull() {
_arguments \
'(--no-upload)--no-publish[download the bottles, apply the bottle commit, and upload the bottles to Bintray, but don''t publish them]' \
'(--no-publish)--no-upload[download the bottles and apply the bottle commit, but don''t upload to Bintray]' \
'--dry-run[print what would be done rather than doing it]' \
'--clean[do not amend the commits from pull requests]' \
'--branch-okay[do not warn if pulling to a branch besides master (useful for testing)]' \
'--resolve[when a patch fails to apply, leave in progress and allow user to resolve, instead of aborting]' \
'--workflow[retrieve artifacts from the specified workflow (default: tests.yml)]' \
'--artifact[download artifacts with the specified name (default: bottles)]' \
'--bintray-org[upload to the specified Bintray organisation (default: homebrew)]' \
'--tap[target repository tap (default: homebrew/core)]' \
'*:pull_request: '
}
# brew readall [tap]: # brew readall [tap]:
_brew_readall() { _brew_readall() {
__brew_installed_taps __brew_installed_taps