diff --git a/completions/bash/brew b/completions/bash/brew index 9c2343a935..adc749389d 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -125,6 +125,7 @@ _brew___cache() { -*) __brewcomp " --HEAD + --arch --bottle-tag --build-from-source --cask @@ -132,6 +133,7 @@ _brew___cache() { --force-bottle --formula --help + --os --quiet --verbose " @@ -346,6 +348,7 @@ _brew_audit() { case "${cur}" in -*) __brewcomp " + --arch --audit-debug --cask --debug @@ -363,6 +366,7 @@ _brew_audit() { --online --only --only-cops + --os --quiet --signing --skip-style @@ -968,6 +972,7 @@ _brew_fetch() { -*) __brewcomp " --HEAD + --arch --bottle-tag --build-bottle --build-from-source @@ -979,6 +984,7 @@ _brew_fetch() { --formula --help --no-quarantine + --os --quarantine --quiet --retry diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 44b867c924..6dfe77bf30 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -192,6 +192,7 @@ end __fish_brew_complete_cmd '--cache' 'Display Homebrew\'s download cache' __fish_brew_complete_arg '--cache' -l HEAD -d 'Show the cache file used when building from HEAD' +__fish_brew_complete_arg '--cache' -l arch -d 'Show cache file for the given CPU architecture.(Pass `all` to show cache files for all architectures.)' __fish_brew_complete_arg '--cache' -l bottle-tag -d 'Show the cache file used when pouring a bottle for the given tag' __fish_brew_complete_arg '--cache' -l build-from-source -d 'Show the cache file used when building from source' __fish_brew_complete_arg '--cache' -l cask -d 'Only show cache files for casks' @@ -199,6 +200,7 @@ __fish_brew_complete_arg '--cache' -l debug -d 'Display any debugging informatio __fish_brew_complete_arg '--cache' -l force-bottle -d 'Show the cache file used when pouring a bottle' __fish_brew_complete_arg '--cache' -l formula -d 'Only show cache files for formulae' __fish_brew_complete_arg '--cache' -l help -d 'Show this message' +__fish_brew_complete_arg '--cache' -l os -d 'Show cache file for the given operating system.(Pass `all` to show cache files for all operating systems.)' __fish_brew_complete_arg '--cache' -l quiet -d 'Make some output more quiet' __fish_brew_complete_arg '--cache' -l verbose -d 'Make some output more verbose' __fish_brew_complete_arg '--cache; and not __fish_seen_argument -l cask -l casks' -a '(__fish_brew_suggest_formulae_all)' @@ -317,6 +319,7 @@ __fish_brew_complete_arg 'analytics' -l verbose -d 'Make some output more verbos __fish_brew_complete_cmd 'audit' 'Check formula for Homebrew coding style violations' +__fish_brew_complete_arg 'audit' -l arch -d 'Audit the given CPU architecture. (Pass `all` to audit all architectures.)' __fish_brew_complete_arg 'audit' -l audit-debug -d 'Enable debugging and profiling of audit methods' __fish_brew_complete_arg 'audit' -l cask -d 'Treat all named arguments as casks' __fish_brew_complete_arg 'audit' -l debug -d 'Display any debugging information' @@ -334,6 +337,7 @@ __fish_brew_complete_arg 'audit' -l no-signing -d 'Audit for signed apps, which __fish_brew_complete_arg 'audit' -l online -d 'Run additional, slower style checks that require a network connection' __fish_brew_complete_arg 'audit' -l only -d 'Specify a comma-separated method list to only run the methods named `audit_`method' __fish_brew_complete_arg 'audit' -l only-cops -d 'Specify a comma-separated cops list to check for violations of only the listed RuboCop cops' +__fish_brew_complete_arg 'audit' -l os -d 'Audit the given operating system. (Pass `all` to audit all operating systems.)' __fish_brew_complete_arg 'audit' -l quiet -d 'Make some output more quiet' __fish_brew_complete_arg 'audit' -l signing -d 'Audit for signed apps, which are required on ARM' __fish_brew_complete_arg 'audit' -l skip-style -d 'Skip running non-RuboCop style checks. Useful if you plan on running `brew style` separately. Enabled by default unless a formula is specified by name' @@ -699,6 +703,7 @@ __fish_brew_complete_arg 'extract' -a '(__fish_brew_suggest_taps_installed)' __fish_brew_complete_cmd 'fetch' 'Download a bottle (if available) or source packages for formulae and binaries for casks' __fish_brew_complete_arg 'fetch' -l HEAD -d 'Fetch HEAD version instead of stable version' +__fish_brew_complete_arg 'fetch' -l arch -d 'Download for the given CPU architecture.(Pass `all` to download for all architectures.)' __fish_brew_complete_arg 'fetch' -l bottle-tag -d 'Download a bottle for given tag' __fish_brew_complete_arg 'fetch' -l build-bottle -d 'Download source packages (for eventual bottling) rather than a bottle' __fish_brew_complete_arg 'fetch' -l build-from-source -d 'Download source packages rather than a bottle' @@ -710,6 +715,7 @@ __fish_brew_complete_arg 'fetch' -l force-bottle -d 'Download a bottle if it exi __fish_brew_complete_arg 'fetch' -l formula -d 'Treat all named arguments as formulae' __fish_brew_complete_arg 'fetch' -l help -d 'Show this message' __fish_brew_complete_arg 'fetch' -l no-quarantine -d 'Disable/enable quarantining of downloads (default: enabled)' +__fish_brew_complete_arg 'fetch' -l os -d 'Download for the given operating system.(Pass `all` to download for all operating systems.)' __fish_brew_complete_arg 'fetch' -l quarantine -d 'Disable/enable quarantining of downloads (default: enabled)' __fish_brew_complete_arg 'fetch' -l quiet -d 'Make some output more quiet' __fish_brew_complete_arg 'fetch' -l retry -d 'Retry if downloading fails or re-download if the checksum of a previously cached version no longer matches. Tries at most 5 times with exponential backoff' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 020c8f29da..732508ff8e 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -262,11 +262,13 @@ __brew_diagnostic_checks() { _brew___cache() { _arguments \ '(--build-from-source --force-bottle --bottle-tag --cask)--HEAD[Show the cache file used when building from HEAD]' \ - '(--build-from-source --force-bottle --HEAD --cask)--bottle-tag[Show the cache file used when pouring a bottle for the given tag]' \ + '(--bottle-tag)--arch[Show cache file for the given CPU architecture.(Pass `all` to show cache files for all architectures.)]' \ + '(--build-from-source --force-bottle --HEAD --cask --os --arch)--bottle-tag[Show the cache file used when pouring a bottle for the given tag]' \ '(--force-bottle --bottle-tag --HEAD --cask)--build-from-source[Show the cache file used when building from source]' \ '--debug[Display any debugging information]' \ '(--build-from-source --bottle-tag --HEAD --cask)--force-bottle[Show the cache file used when pouring a bottle]' \ '--help[Show this message]' \ + '(--bottle-tag)--os[Show cache file for the given operating system.(Pass `all` to show cache files for all operating systems.)]' \ '--quiet[Make some output more quiet]' \ '--verbose[Make some output more verbose]' \ - formula \ @@ -417,6 +419,7 @@ _brew_analytics() { # brew audit _brew_audit() { _arguments \ + '--arch[Audit the given CPU architecture. (Pass `all` to audit all architectures.)]' \ '--audit-debug[Enable debugging and profiling of audit methods]' \ '--debug[Display any debugging information]' \ '--display-filename[Prefix every line of output with the file or formula name being audited, to make output easy to grep]' \ @@ -432,6 +435,7 @@ _brew_audit() { '--online[Run additional, slower style checks that require a network connection]' \ '(--except --only-cops --except-cops)--only[Specify a comma-separated method list to only run the methods named `audit_`method]' \ '(--except-cops --strict --except-cops --only)--only-cops[Specify a comma-separated cops list to check for violations of only the listed RuboCop cops]' \ + '--os[Audit the given operating system. (Pass `all` to audit all operating systems.)]' \ '--quiet[Make some output more quiet]' \ '--signing[Audit for signed apps, which are required on ARM]' \ '--skip-style[Skip running non-RuboCop style checks. Useful if you plan on running `brew style` separately. Enabled by default unless a formula is specified by name]' \ @@ -880,7 +884,8 @@ _brew_extract() { _brew_fetch() { _arguments \ '(--cask)--HEAD[Fetch HEAD version instead of stable version]' \ - '(--build-from-source --build-bottle --force-bottle --cask)--bottle-tag[Download a bottle for given tag]' \ + '(--bottle-tag)--arch[Download for the given CPU architecture.(Pass `all` to download for all architectures.)]' \ + '(--build-from-source --build-bottle --force-bottle --cask --os --arch)--bottle-tag[Download a bottle for given tag]' \ '(--build-from-source --force-bottle --bottle-tag --cask)--build-bottle[Download source packages (for eventual bottling) rather than a bottle]' \ '(--build-bottle --force-bottle --bottle-tag)--build-from-source[Download source packages rather than a bottle]' \ '--debug[Display any debugging information]' \ @@ -889,6 +894,7 @@ _brew_fetch() { '(--build-from-source --build-bottle --bottle-tag --cask)--force-bottle[Download a bottle if it exists for the current or newest version of macOS, even if it would not be used during installation]' \ '--help[Show this message]' \ '--no-quarantine[Disable/enable quarantining of downloads (default: enabled)]' \ + '(--bottle-tag)--os[Download for the given operating system.(Pass `all` to download for all operating systems.)]' \ '--quarantine[Disable/enable quarantining of downloads (default: enabled)]' \ '--quiet[Make some output more quiet]' \ '--retry[Retry if downloading fails or re-download if the checksum of a previously cached version no longer matches. Tries at most 5 times with exponential backoff]' \ diff --git a/docs/Manpage.md b/docs/Manpage.md index 6de815238e..a6a185492c 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -228,6 +228,10 @@ an issue; just ignore this. Download a bottle (if available) or source packages for *`formula`*e and binaries for *`cask`*s. For files, also print SHA-256 checksums. +* `--os`: + Download for the given operating system.(Pass `all` to download for all operating systems.) +* `--arch`: + Download for the given CPU architecture.(Pass `all` to download for all architectures.) * `--bottle-tag`: Download a bottle for given tag. * `--HEAD`: @@ -831,6 +835,10 @@ Display Homebrew's download cache. See also `HOMEBREW_CACHE`. If *`formula`* is provided, display the file or directory used to cache *`formula`*. +* `--os`: + Show cache file for the given operating system.(Pass `all` to show cache files for all operating systems.) +* `--arch`: + Show cache file for the given CPU architecture.(Pass `all` to show cache files for all architectures.) * `-s`, `--build-from-source`: Show the cache file used when building from source. * `--force-bottle`: @@ -905,6 +913,10 @@ submitting a new formula or cask. If no *`formula`*|*`cask`* are provided, check locally available formulae and casks and skip style checks. Will exit with a non-zero status if any errors are found. +* `--os`: + Audit the given operating system. (Pass `all` to audit all operating systems.) +* `--arch`: + Audit the given CPU architecture. (Pass `all` to audit all architectures.) * `--strict`: Run additional, stricter style checks. * `--git`: diff --git a/manpages/brew.1 b/manpages/brew.1 index d0330e5e9c..154e3ab416 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -281,6 +281,14 @@ Enable debugging and profiling of audit methods\. Download a bottle (if available) or source packages for \fIformula\fRe and binaries for \fIcask\fRs\. For files, also print SHA\-256 checksums\. . .TP +\fB\-\-os\fR +Download for the given operating system\.(Pass \fBall\fR to download for all operating systems\.) +. +.TP +\fB\-\-arch\fR +Download for the given CPU architecture\.(Pass \fBall\fR to download for all architectures\.) +. +.TP \fB\-\-bottle\-tag\fR Download a bottle for given tag\. . @@ -1169,6 +1177,14 @@ Display Homebrew\'s download cache\. See also \fBHOMEBREW_CACHE\fR\. If \fIformula\fR is provided, display the file or directory used to cache \fIformula\fR\. . .TP +\fB\-\-os\fR +Show cache file for the given operating system\.(Pass \fBall\fR to show cache files for all operating systems\.) +. +.TP +\fB\-\-arch\fR +Show cache file for the given CPU architecture\.(Pass \fBall\fR to show cache files for all architectures\.) +. +.TP \fB\-s\fR, \fB\-\-build\-from\-source\fR Show the cache file used when building from source\. . @@ -1258,6 +1274,14 @@ Print the version numbers of Homebrew, Homebrew/homebrew\-core and Homebrew/home Check \fIformula\fR for Homebrew coding style violations\. This should be run before submitting a new formula or cask\. If no \fIformula\fR|\fIcask\fR are provided, check all locally available formulae and casks and skip style checks\. Will exit with a non\-zero status if any errors are found\. . .TP +\fB\-\-os\fR +Audit the given operating system\. (Pass \fBall\fR to audit all operating systems\.) +. +.TP +\fB\-\-arch\fR +Audit the given CPU architecture\. (Pass \fBall\fR to audit all architectures\.) +. +.TP \fB\-\-strict\fR Run additional, stricter style checks\. .