Skip to content

Commit 9da27e1

Browse files
authored
Merge pull request #20620 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2 parents 48170b8 + aa40480 commit 9da27e1

File tree

5 files changed

+46
-14
lines changed

5 files changed

+46
-14
lines changed

completions/bash/brew

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,9 +2738,11 @@ _brew_unpack() {
27382738
case "${cur}" in
27392739
-*)
27402740
__brewcomp "
2741+
--cask
27412742
--debug
27422743
--destdir
27432744
--force
2745+
--formula
27442746
--git
27452747
--help
27462748
--patch
@@ -2752,6 +2754,7 @@ _brew_unpack() {
27522754
*) ;;
27532755
esac
27542756
__brew_complete_formulae
2757+
__brew_complete_casks
27552758
}
27562759

27572760
_brew_unpin() {

completions/fish/brew.fish

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,16 +1778,19 @@ __fish_brew_complete_arg 'unlink' -l verbose -d 'Make some output more verbose'
17781778
__fish_brew_complete_arg 'unlink' -a '(__fish_brew_suggest_formulae_installed)'
17791779

17801780

1781-
__fish_brew_complete_cmd 'unpack' 'Unpack the source files for formula into subdirectories of the current working directory'
1781+
__fish_brew_complete_cmd 'unpack' 'Unpack the files for the formula or cask into subdirectories of the current working directory'
1782+
__fish_brew_complete_arg 'unpack' -l cask -d 'Treat all named arguments as casks'
17821783
__fish_brew_complete_arg 'unpack' -l debug -d 'Display any debugging information'
17831784
__fish_brew_complete_arg 'unpack' -l destdir -d 'Create subdirectories in the directory named by path instead'
17841785
__fish_brew_complete_arg 'unpack' -l force -d 'Overwrite the destination directory if it already exists'
1786+
__fish_brew_complete_arg 'unpack' -l formula -d 'Treat all named arguments as formulae'
17851787
__fish_brew_complete_arg 'unpack' -l git -d 'Initialise a Git repository in the unpacked source. This is useful for creating patches for the software'
17861788
__fish_brew_complete_arg 'unpack' -l help -d 'Show this message'
17871789
__fish_brew_complete_arg 'unpack' -l patch -d 'Patches for formula will be applied to the unpacked source'
17881790
__fish_brew_complete_arg 'unpack' -l quiet -d 'Make some output more quiet'
17891791
__fish_brew_complete_arg 'unpack' -l verbose -d 'Make some output more verbose'
1790-
__fish_brew_complete_arg 'unpack' -a '(__fish_brew_suggest_formulae_all)'
1792+
__fish_brew_complete_arg 'unpack; and not __fish_seen_argument -l cask -l casks' -a '(__fish_brew_suggest_formulae_all)'
1793+
__fish_brew_complete_arg 'unpack; and not __fish_seen_argument -l formula -l formulae' -a '(__fish_brew_suggest_casks_all)'
17911794

17921795

17931796
__fish_brew_complete_cmd 'unpin' 'Unpin formula, allowing them to be upgraded by `brew upgrade` formula'

completions/zsh/_brew

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ __brew_internal_commands() {
229229
'unbottled:Show the unbottled dependents of formulae'
230230
'uninstall:Uninstall a formula or cask'
231231
'unlink:Remove symlinks for formula from Homebrew'\''s prefix'
232-
'unpack:Unpack the source files for formula into subdirectories of the current working directory'
232+
'unpack:Unpack the files for the formula or cask into subdirectories of the current working directory'
233233
'unpin:Unpin formula, allowing them to be upgraded by `brew upgrade` formula'
234234
'untap:Remove a tapped formula repository'
235235
'update:Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1) and perform any necessary migrations'
@@ -2193,13 +2193,17 @@ _brew_unpack() {
21932193
'--debug[Display any debugging information]' \
21942194
'--destdir[Create subdirectories in the directory named by path instead]' \
21952195
'--force[Overwrite the destination directory if it already exists]' \
2196-
'(--patch)--git[Initialise a Git repository in the unpacked source. This is useful for creating patches for the software]' \
2196+
'(--patch --cask)--git[Initialise a Git repository in the unpacked source. This is useful for creating patches for the software]' \
21972197
'--help[Show this message]' \
2198-
'(--git)--patch[Patches for formula will be applied to the unpacked source]' \
2198+
'(--git --cask)--patch[Patches for formula will be applied to the unpacked source]' \
21992199
'--quiet[Make some output more quiet]' \
22002200
'--verbose[Make some output more verbose]' \
22012201
- formula \
2202-
'*:formula:__brew_formulae'
2202+
'(--cask)--formula[Treat all named arguments as formulae]' \
2203+
'*:formula:__brew_formulae' \
2204+
- cask \
2205+
'(--formula --patch --git)--cask[Treat all named arguments as casks]' \
2206+
'*:cask:__brew_casks'
22032207
}
22042208

22052209
# brew unpin

docs/Manpage.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3304,10 +3304,10 @@ Show the unbottled dependents of formulae.
33043304
: Evaluate all available formulae and casks, whether installed or not, to check
33053305
them. Enabled by default if `$HOMEBREW_EVAL_ALL` is set.
33063306

3307-
### `unpack` \[*`options`*\] *`formula`* \[...\]
3307+
### `unpack` \[*`options`*\] *`formula`*\|*`cask`* \[...\]
33083308

3309-
Unpack the source files for *`formula`* into subdirectories of the current
3310-
working directory.
3309+
Unpack the files for the *`formula`* or *`cask`* into subdirectories of the
3310+
current working directory.
33113311

33123312
`--destdir`
33133313

@@ -3326,6 +3326,14 @@ working directory.
33263326

33273327
: Overwrite the destination directory if it already exists.
33283328

3329+
`--formula`
3330+
3331+
: Treat all named arguments as formulae.
3332+
3333+
`--cask`
3334+
3335+
: Treat all named arguments as casks.
3336+
33293337
### `update-license-data`
33303338

33313339
Update SPDX license data in the Homebrew repository.
@@ -3755,7 +3763,7 @@ and Linux workers.
37553763

37563764
: Use these tested formulae from formulae steps for a formulae dependents step.
37573765

3758-
### `which-formula` \[`--explain`\] *`command`* \[...\]
3766+
### `which-formula` \[`--explain`\] \[`--skip-update`\] *`command`* \[...\]
37593767

37603768
Show which formula(e) provides the given command.
37613769

@@ -3764,6 +3772,11 @@ Show which formula(e) provides the given command.
37643772
: Output explanation of how to get *`command`* by installing one of the
37653773
providing formulae.
37663774

3775+
`--skip-update`
3776+
3777+
: Skip updating the executables database if any version exists on disk, no
3778+
matter how old.
3779+
37673780
### `which-update` \[*`options`*\] \[*`database`*\]
37683781

37693782
Database update for `brew which-formula`.

manpages/brew.1

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.\" generated by kramdown
2-
.TH "BREW" "1" "August 2025" "Homebrew"
2+
.TH "BREW" "1" "September 2025" "Homebrew"
33
.SH NAME
44
brew \- The Missing Package Manager for macOS (or Linux)
55
.SH "SYNOPSIS"
@@ -2102,8 +2102,8 @@ Print the \fBhomebrew/core\fP commits where bottles were lost in the last week\.
21022102
.TP
21032103
\fB\-\-eval\-all\fP
21042104
Evaluate all available formulae and casks, whether installed or not, to check them\. Enabled by default if \fB$HOMEBREW_EVAL_ALL\fP is set\.
2105-
.SS "\fBunpack\fP \fR[\fIoptions\fP] \fIformula\fP \fR[\.\.\.]"
2106-
Unpack the source files for \fIformula\fP into subdirectories of the current working directory\.
2105+
.SS "\fBunpack\fP \fR[\fIoptions\fP] \fIformula\fP|\fIcask\fP \fR[\.\.\.]"
2106+
Unpack the files for the \fIformula\fP or \fIcask\fP into subdirectories of the current working directory\.
21072107
.TP
21082108
\fB\-\-destdir\fP
21092109
Create subdirectories in the directory named by \fIpath\fP instead\.
@@ -2116,6 +2116,12 @@ Initialise a Git repository in the unpacked source\. This is useful for creating
21162116
.TP
21172117
\fB\-f\fP, \fB\-\-force\fP
21182118
Overwrite the destination directory if it already exists\.
2119+
.TP
2120+
\fB\-\-formula\fP
2121+
Treat all named arguments as formulae\.
2122+
.TP
2123+
\fB\-\-cask\fP
2124+
Treat all named arguments as casks\.
21192125
.SS "\fBupdate\-license\-data\fP"
21202126
Update SPDX license data in the Homebrew repository\.
21212127
.SS "\fBupdate\-maintainers\fP"
@@ -2403,11 +2409,14 @@ Use these skipped or failed formulae from formulae steps for a formulae dependen
24032409
.TP
24042410
\fB\-\-tested\-formulae\fP
24052411
Use these tested formulae from formulae steps for a formulae dependents step\.
2406-
.SS "\fBwhich\-formula\fP \fR[\fB\-\-explain\fP] \fIcommand\fP \fR[\.\.\.]"
2412+
.SS "\fBwhich\-formula\fP \fR[\fB\-\-explain\fP] \fR[\fB\-\-skip\-update\fP] \fIcommand\fP \fR[\.\.\.]"
24072413
Show which formula(e) provides the given command\.
24082414
.TP
24092415
\fB\-\-explain\fP
24102416
Output explanation of how to get \fIcommand\fP by installing one of the providing formulae\.
2417+
.TP
2418+
\fB\-\-skip\-update\fP
2419+
Skip updating the executables database if any version exists on disk, no matter how old\.
24112420
.SS "\fBwhich\-update\fP \fR[\fIoptions\fP] \fR[\fIdatabase\fP]"
24122421
Database update for \fBbrew which\-formula\fP\&\.
24132422
.TP

0 commit comments

Comments
 (0)