mirror of
https://github.com/Homebrew/brew.git
synced 2024-11-25 16:33:34 +08:00
Merge pull request #18782 from Homebrew/sponsors-maintainers-man-completions
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker / docker (Ubuntu ${{ matrix.version }}) (18.04) (push) Waiting to run
Docker / docker (Ubuntu ${{ matrix.version }}) (20.04) (push) Waiting to run
Docker / docker (Ubuntu ${{ matrix.version }}) (22.04) (push) Waiting to run
Docker / docker (Ubuntu ${{ matrix.version }}) (24.04) (push) Waiting to run
Documentation CI / docs (push) Waiting to run
Ruby Documentation CI / rubydoc (push) Waiting to run
CI / syntax (push) Waiting to run
CI / tap syntax (push) Blocked by required conditions
CI / formula audit (push) Blocked by required conditions
CI / cask audit (push) Blocked by required conditions
CI / vendored gems (push) Blocked by required conditions
CI / ${{ matrix.name }} (update-test (Ubuntu), ubuntu-latest) (push) Blocked by required conditions
CI / ${{ matrix.name }} (update-test (macOS), macos-15) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (Ubuntu 20.04), ubuntu-20.04, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (Ubuntu 22.04), ubuntu-22.04, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (Ubuntu 24.04), ubuntu-24.04, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (generic OS), ubuntu-latest, --generic --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (macOS 13 x86_64), macos-13, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (macOS 15 arm64), macos-15, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (online), ubuntu-latest, --online --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (ghcr.io/homebrew/ubuntu20.04, test default formula (Ubuntu 20.04), ubuntu-latest) (push) Blocked by required conditions
CI / ${{ matrix.name }} (ghcr.io/homebrew/ubuntu22.04:master, test default formula (Ubuntu 22.04), ubuntu-latest) (push) Blocked by required conditions
CI / ${{ matrix.name }} (test default formula (macOS 13 x86_64), macos-13) (push) Blocked by required conditions
CI / ${{ matrix.name }} (test default formula (macOS 15 arm64), macos-15) (push) Blocked by required conditions
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker / docker (Ubuntu ${{ matrix.version }}) (18.04) (push) Waiting to run
Docker / docker (Ubuntu ${{ matrix.version }}) (20.04) (push) Waiting to run
Docker / docker (Ubuntu ${{ matrix.version }}) (22.04) (push) Waiting to run
Docker / docker (Ubuntu ${{ matrix.version }}) (24.04) (push) Waiting to run
Documentation CI / docs (push) Waiting to run
Ruby Documentation CI / rubydoc (push) Waiting to run
CI / syntax (push) Waiting to run
CI / tap syntax (push) Blocked by required conditions
CI / formula audit (push) Blocked by required conditions
CI / cask audit (push) Blocked by required conditions
CI / vendored gems (push) Blocked by required conditions
CI / ${{ matrix.name }} (update-test (Ubuntu), ubuntu-latest) (push) Blocked by required conditions
CI / ${{ matrix.name }} (update-test (macOS), macos-15) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (Ubuntu 20.04), ubuntu-20.04, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (Ubuntu 22.04), ubuntu-22.04, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (Ubuntu 24.04), ubuntu-24.04, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (generic OS), ubuntu-latest, --generic --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (macOS 13 x86_64), macos-13, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (macOS 15 arm64), macos-15, --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (tests (online), ubuntu-latest, --online --coverage) (push) Blocked by required conditions
CI / ${{ matrix.name }} (ghcr.io/homebrew/ubuntu20.04, test default formula (Ubuntu 20.04), ubuntu-latest) (push) Blocked by required conditions
CI / ${{ matrix.name }} (ghcr.io/homebrew/ubuntu22.04:master, test default formula (Ubuntu 22.04), ubuntu-latest) (push) Blocked by required conditions
CI / ${{ matrix.name }} (test default formula (macOS 13 x86_64), macos-13) (push) Blocked by required conditions
CI / ${{ matrix.name }} (test default formula (macOS 15 arm64), macos-15) (push) Blocked by required conditions
Update manpage and completions.
This commit is contained in:
commit
cc0b5d6d05
@ -1126,6 +1126,28 @@ _brew_generate_cask_api() {
|
||||
esac
|
||||
}
|
||||
|
||||
_brew_generate_cask_ci_matrix() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
case "${cur}" in
|
||||
-*)
|
||||
__brewcomp "
|
||||
--cask
|
||||
--debug
|
||||
--help
|
||||
--new
|
||||
--quiet
|
||||
--skip-install
|
||||
--syntax-only
|
||||
--url
|
||||
--verbose
|
||||
"
|
||||
return
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
__brew_complete_casks
|
||||
}
|
||||
|
||||
_brew_generate_formula_api() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
case "${cur}" in
|
||||
@ -2923,6 +2945,7 @@ _brew() {
|
||||
formula) _brew_formula ;;
|
||||
formulae) _brew_formulae ;;
|
||||
generate-cask-api) _brew_generate_cask_api ;;
|
||||
generate-cask-ci-matrix) _brew_generate_cask_ci_matrix ;;
|
||||
generate-formula-api) _brew_generate_formula_api ;;
|
||||
generate-man-completions) _brew_generate_man_completions ;;
|
||||
gist-logs) _brew_gist_logs ;;
|
||||
|
@ -786,6 +786,19 @@ __fish_brew_complete_arg 'generate-cask-api' -l quiet -d 'Make some output more
|
||||
__fish_brew_complete_arg 'generate-cask-api' -l verbose -d 'Make some output more verbose'
|
||||
|
||||
|
||||
__fish_brew_complete_cmd 'generate-cask-ci-matrix' 'Generate a GitHub Actions matrix for a given pull request URL or list of cask names'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l cask -d 'Treat all named arguments as cask tokens'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l debug -d 'Display any debugging information'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l help -d 'Show this message'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l new -d 'Run new cask checks'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l quiet -d 'Make some output more quiet'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l skip-install -d 'Skip installing casks'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l syntax-only -d 'Only run syntax checks'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l url -d 'Treat named argument as a pull request URL'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -l verbose -d 'Make some output more verbose'
|
||||
__fish_brew_complete_arg 'generate-cask-ci-matrix' -a '(__fish_brew_suggest_casks_all)'
|
||||
|
||||
|
||||
__fish_brew_complete_cmd 'generate-formula-api' 'Generate `homebrew/core` API data files for https://formulae.brew.sh'
|
||||
__fish_brew_complete_arg 'generate-formula-api' -l debug -d 'Display any debugging information'
|
||||
__fish_brew_complete_arg 'generate-formula-api' -l dry-run -d 'Generate API data without writing it to files'
|
||||
|
@ -44,6 +44,7 @@ fetch
|
||||
formula
|
||||
formulae
|
||||
generate-cask-api
|
||||
generate-cask-ci-matrix
|
||||
generate-formula-api
|
||||
generate-man-completions
|
||||
gist-logs
|
||||
|
@ -171,6 +171,7 @@ __brew_internal_commands() {
|
||||
'formula:Display the path where formula is located'
|
||||
'formulae:List all locally installable formulae including short names'
|
||||
'generate-cask-api:Generate `homebrew/cask` API data files for https://formulae.brew.sh'
|
||||
'generate-cask-ci-matrix:Generate a GitHub Actions matrix for a given pull request URL or list of cask names'
|
||||
'generate-formula-api:Generate `homebrew/core` API data files for https://formulae.brew.sh'
|
||||
'generate-man-completions:Generate Homebrew'\''s manpages and shell completions'
|
||||
'gist-logs:Upload logs for a failed build of formula to a new Gist'
|
||||
@ -995,6 +996,22 @@ _brew_generate_cask_api() {
|
||||
'--verbose[Make some output more verbose]'
|
||||
}
|
||||
|
||||
# brew generate-cask-ci-matrix
|
||||
_brew_generate_cask_ci_matrix() {
|
||||
_arguments \
|
||||
'--debug[Display any debugging information]' \
|
||||
'--help[Show this message]' \
|
||||
'(--syntax-only)--new[Run new cask checks]' \
|
||||
'--quiet[Make some output more quiet]' \
|
||||
'(--syntax-only)--skip-install[Skip installing casks]' \
|
||||
'(--skip-install --new)--syntax-only[Only run syntax checks]' \
|
||||
'(--cask)--url[Treat named argument as a pull request URL]' \
|
||||
'--verbose[Make some output more verbose]' \
|
||||
- cask \
|
||||
'(--url)--cask[Treat all named arguments as cask tokens]' \
|
||||
'*::cask:__brew_casks'
|
||||
}
|
||||
|
||||
# brew generate-formula-api
|
||||
_brew_generate_formula_api() {
|
||||
_arguments \
|
||||
|
Loading…
Reference in New Issue
Block a user