Skip to content

Commit cc0b5d6

Browse files
authored
Merge pull request #18782 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2 parents 22fd47b + f970db1 commit cc0b5d6

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

completions/bash/brew

+23
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,28 @@ _brew_generate_cask_api() {
11261126
esac
11271127
}
11281128

1129+
_brew_generate_cask_ci_matrix() {
1130+
local cur="${COMP_WORDS[COMP_CWORD]}"
1131+
case "${cur}" in
1132+
-*)
1133+
__brewcomp "
1134+
--cask
1135+
--debug
1136+
--help
1137+
--new
1138+
--quiet
1139+
--skip-install
1140+
--syntax-only
1141+
--url
1142+
--verbose
1143+
"
1144+
return
1145+
;;
1146+
*) ;;
1147+
esac
1148+
__brew_complete_casks
1149+
}
1150+
11291151
_brew_generate_formula_api() {
11301152
local cur="${COMP_WORDS[COMP_CWORD]}"
11311153
case "${cur}" in
@@ -2923,6 +2945,7 @@ _brew() {
29232945
formula) _brew_formula ;;
29242946
formulae) _brew_formulae ;;
29252947
generate-cask-api) _brew_generate_cask_api ;;
2948+
generate-cask-ci-matrix) _brew_generate_cask_ci_matrix ;;
29262949
generate-formula-api) _brew_generate_formula_api ;;
29272950
generate-man-completions) _brew_generate_man_completions ;;
29282951
gist-logs) _brew_gist_logs ;;

completions/fish/brew.fish

+13
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,19 @@ __fish_brew_complete_arg 'generate-cask-api' -l quiet -d 'Make some output more
786786
__fish_brew_complete_arg 'generate-cask-api' -l verbose -d 'Make some output more verbose'
787787

788788

789+
__fish_brew_complete_cmd 'generate-cask-ci-matrix' 'Generate a GitHub Actions matrix for a given pull request URL or list of cask names'
790+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l cask -d 'Treat all named arguments as cask tokens'
791+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l debug -d 'Display any debugging information'
792+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l help -d 'Show this message'
793+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l new -d 'Run new cask checks'
794+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l quiet -d 'Make some output more quiet'
795+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l skip-install -d 'Skip installing casks'
796+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l syntax-only -d 'Only run syntax checks'
797+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l url -d 'Treat named argument as a pull request URL'
798+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l verbose -d 'Make some output more verbose'
799+
__fish_brew_complete_arg 'generate-cask-ci-matrix' -a '(__fish_brew_suggest_casks_all)'
800+
801+
789802
__fish_brew_complete_cmd 'generate-formula-api' 'Generate `homebrew/core` API data files for https://formulae.brew.sh'
790803
__fish_brew_complete_arg 'generate-formula-api' -l debug -d 'Display any debugging information'
791804
__fish_brew_complete_arg 'generate-formula-api' -l dry-run -d 'Generate API data without writing it to files'

completions/internal_commands_list.txt

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ fetch
4444
formula
4545
formulae
4646
generate-cask-api
47+
generate-cask-ci-matrix
4748
generate-formula-api
4849
generate-man-completions
4950
gist-logs

completions/zsh/_brew

+17
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ __brew_internal_commands() {
171171
'formula:Display the path where formula is located'
172172
'formulae:List all locally installable formulae including short names'
173173
'generate-cask-api:Generate `homebrew/cask` API data files for https://formulae.brew.sh'
174+
'generate-cask-ci-matrix:Generate a GitHub Actions matrix for a given pull request URL or list of cask names'
174175
'generate-formula-api:Generate `homebrew/core` API data files for https://formulae.brew.sh'
175176
'generate-man-completions:Generate Homebrew'\''s manpages and shell completions'
176177
'gist-logs:Upload logs for a failed build of formula to a new Gist'
@@ -995,6 +996,22 @@ _brew_generate_cask_api() {
995996
'--verbose[Make some output more verbose]'
996997
}
997998

999+
# brew generate-cask-ci-matrix
1000+
_brew_generate_cask_ci_matrix() {
1001+
_arguments \
1002+
'--debug[Display any debugging information]' \
1003+
'--help[Show this message]' \
1004+
'(--syntax-only)--new[Run new cask checks]' \
1005+
'--quiet[Make some output more quiet]' \
1006+
'(--syntax-only)--skip-install[Skip installing casks]' \
1007+
'(--skip-install --new)--syntax-only[Only run syntax checks]' \
1008+
'(--cask)--url[Treat named argument as a pull request URL]' \
1009+
'--verbose[Make some output more verbose]' \
1010+
- cask \
1011+
'(--url)--cask[Treat all named arguments as cask tokens]' \
1012+
'*::cask:__brew_casks'
1013+
}
1014+
9981015
# brew generate-formula-api
9991016
_brew_generate_formula_api() {
10001017
_arguments \

0 commit comments

Comments
 (0)