Skip to content

Commit bbe3584

Browse files
authored
Merge pull request #18055 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2 parents dd8334b + 787b44f commit bbe3584

File tree

6 files changed

+70
-0
lines changed

6 files changed

+70
-0
lines changed

completions/bash/brew

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,25 @@ _brew_create() {
783783
esac
784784
}
785785

786+
_brew_debugger() {
787+
local cur="${COMP_WORDS[COMP_CWORD]}"
788+
case "${cur}" in
789+
-*)
790+
__brewcomp "
791+
--debug
792+
--help
793+
--open
794+
--quiet
795+
--stop
796+
--verbose
797+
"
798+
return
799+
;;
800+
*) ;;
801+
esac
802+
__brew_complete_commands
803+
}
804+
786805
_brew_deps() {
787806
local cur="${COMP_WORDS[COMP_CWORD]}"
788807
case "${cur}" in
@@ -2881,6 +2900,7 @@ _brew() {
28812900
config) _brew_config ;;
28822901
contributions) _brew_contributions ;;
28832902
create) _brew_create ;;
2903+
debugger) _brew_debugger ;;
28842904
deps) _brew_deps ;;
28852905
desc) _brew_desc ;;
28862906
determine-test-runners) _brew_determine_test_runners ;;

completions/fish/brew.fish

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,16 @@ __fish_brew_complete_arg 'create' -l tap -d 'Generate the new formula within the
585585
__fish_brew_complete_arg 'create' -l verbose -d 'Make some output more verbose'
586586

587587

588+
__fish_brew_complete_cmd 'debugger' 'Run the specified Homebrew command in debug mode'
589+
__fish_brew_complete_arg 'debugger' -l debug -d 'Display any debugging information'
590+
__fish_brew_complete_arg 'debugger' -l help -d 'Show this message'
591+
__fish_brew_complete_arg 'debugger' -l open -d 'Start remote debugging over a Unix socket'
592+
__fish_brew_complete_arg 'debugger' -l quiet -d 'Make some output more quiet'
593+
__fish_brew_complete_arg 'debugger' -l stop -d 'Stop at the beginning of the script'
594+
__fish_brew_complete_arg 'debugger' -l verbose -d 'Make some output more verbose'
595+
__fish_brew_complete_arg 'debugger' -a '(__fish_brew_suggest_commands)'
596+
597+
588598
__fish_brew_complete_cmd 'deps' 'Show dependencies for formula'
589599
__fish_brew_complete_arg 'deps' -l HEAD -d 'Show dependencies for HEAD version instead of stable version'
590600
__fish_brew_complete_arg 'deps' -l annotate -d 'Mark any build, test, implicit, optional, or recommended dependencies as such in the output'

completions/internal_commands_list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ completions
2828
config
2929
contributions
3030
create
31+
debugger
3132
deps
3233
desc
3334
determine-test-runners

completions/zsh/_brew

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ __brew_internal_commands() {
157157
'config:Show Homebrew and system configuration info useful for debugging'
158158
'contributions:Summarise contributions to Homebrew repositories'
159159
'create:Generate a formula or, with `--cask`, a cask for the downloadable file at URL and open it in the editor'
160+
'debugger:Run the specified Homebrew command in debug mode'
160161
'deps:Show dependencies for formula'
161162
'desc:Display formula'\''s name and one-line description'
162163
'determine-test-runners:Determines the runners used to test formulae or their dependents'
@@ -745,6 +746,19 @@ _brew_create() {
745746
'--verbose[Make some output more verbose]'
746747
}
747748

749+
# brew debugger
750+
_brew_debugger() {
751+
_arguments \
752+
'--debug[Display any debugging information]' \
753+
'--help[Show this message]' \
754+
'--open[Start remote debugging over a Unix socket]' \
755+
'--quiet[Make some output more quiet]' \
756+
'--stop[Stop at the beginning of the script]' \
757+
'--verbose[Make some output more verbose]' \
758+
- command \
759+
'*::command:__brew_commands'
760+
}
761+
748762
# brew deps
749763
_brew_deps() {
750764
_arguments \

docs/Manpage.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,6 +2142,21 @@ see: <https://rubydoc.brew.sh/Formula>
21422142

21432143
: Ignore errors for disallowed formula names and names that shadow aliases.
21442144

2145+
### `debugger` \[`--stop`\] \[`--open`\] *`command`* \[...\]
2146+
2147+
Run the specified Homebrew command in debug mode.
2148+
2149+
To pass flags to the command, use `--` to separate them from the `brew` flags.
2150+
For example: `brew debugger -- list --formula`.
2151+
2152+
`-s`, `--stop`
2153+
2154+
: Stop at the beginning of the script.
2155+
2156+
`-O`, `--open`
2157+
2158+
: Start remote debugging over a Unix socket.
2159+
21452160
### `dispatch-build-bottle` \[*`options`*\] *`formula`* \[...\]
21462161

21472162
Build bottles for these formulae with GitHub Actions.

manpages/brew.1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,16 @@ Generate the new formula within the given tap, specified as \fIuser\fP\fB/\fP\fI
13631363
.TP
13641364
\fB\-f\fP, \fB\-\-force\fP
13651365
Ignore errors for disallowed formula names and names that shadow aliases\.
1366+
.SS "\fBdebugger\fP \fR[\fB\-\-stop\fP] \fR[\fB\-\-open\fP] \fIcommand\fP \fR[\.\.\.]"
1367+
Run the specified Homebrew command in debug mode\.
1368+
.P
1369+
To pass flags to the command, use \fB\-\-\fP to separate them from the \fBbrew\fP flags\. For example: \fBbrew debugger \-\- list \-\-formula\fP\&\.
1370+
.TP
1371+
\fB\-s\fP, \fB\-\-stop\fP
1372+
Stop at the beginning of the script\.
1373+
.TP
1374+
\fB\-O\fP, \fB\-\-open\fP
1375+
Start remote debugging over a Unix socket\.
13661376
.SS "\fBdispatch\-build\-bottle\fP \fR[\fIoptions\fP] \fIformula\fP \fR[\.\.\.]"
13671377
Build bottles for these formulae with GitHub Actions\.
13681378
.TP

0 commit comments

Comments
 (0)