diff --git a/completions/bash/brew b/completions/bash/brew index a0cabfd9e7..b82d91ac08 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -298,6 +298,7 @@ _brew_abv() { __brewcomp " --all --analytics + --bottle --cask --category --days @@ -995,6 +996,7 @@ _brew_info() { __brewcomp " --all --analytics + --bottle --cask --category --days diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index b094d7b11f..57025efe59 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -293,6 +293,7 @@ __fish_brew_complete_arg '-S' -l verbose -d 'Make some output more verbose' __fish_brew_complete_cmd 'abv' 'Display brief statistics for your Homebrew installation' __fish_brew_complete_arg 'abv' -l all -d 'Print JSON of all available formulae' __fish_brew_complete_arg 'abv' -l analytics -d 'List global Homebrew analytics data or, if specified, installation and build error data for formula (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set)' +__fish_brew_complete_arg 'abv' -l bottle -d 'Output information about the bottles for formula and its dependencies' __fish_brew_complete_arg 'abv' -l cask -d 'Treat all named arguments as casks' __fish_brew_complete_arg 'abv' -l category -d 'Which type of analytics data to retrieve. The value for category must be `install`, `install-on-request` or `build-error`; `cask-install` or `os-version` may be specified if formula is not. The default is `install`' __fish_brew_complete_arg 'abv' -l days -d 'How many days of analytics data to retrieve. The value for days must be `30`, `90` or `365`. The default is `30`' @@ -715,6 +716,7 @@ __fish_brew_complete_arg 'homepage; and not __fish_seen_argument -l formula -l f __fish_brew_complete_cmd 'info' 'Display brief statistics for your Homebrew installation' __fish_brew_complete_arg 'info' -l all -d 'Print JSON of all available formulae' __fish_brew_complete_arg 'info' -l analytics -d 'List global Homebrew analytics data or, if specified, installation and build error data for formula (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set)' +__fish_brew_complete_arg 'info' -l bottle -d 'Output information about the bottles for formula and its dependencies' __fish_brew_complete_arg 'info' -l cask -d 'Treat all named arguments as casks' __fish_brew_complete_arg 'info' -l category -d 'Which type of analytics data to retrieve. The value for category must be `install`, `install-on-request` or `build-error`; `cask-install` or `os-version` may be specified if formula is not. The default is `install`' __fish_brew_complete_arg 'info' -l days -d 'How many days of analytics data to retrieve. The value for days must be `30`, `90` or `365`. The default is `30`' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 962f44450d..c8e38637c1 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -371,11 +371,12 @@ _brew__s() { _brew_abv() { _arguments \ '(--installed)--all[Print JSON of all available formulae]' \ - '--analytics[List global Homebrew analytics data or, if specified, installation and build error data for formula (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set)]' \ + '(--bottle)--analytics[List global Homebrew analytics data or, if specified, installation and build error data for formula (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set)]' \ + '(--cask --analytics --github)--bottle[Output information about the bottles for formula and its dependencies]' \ '--category[Which type of analytics data to retrieve. The value for category must be `install`, `install-on-request` or `build-error`; `cask-install` or `os-version` may be specified if formula is not. The default is `install`]' \ '--days[How many days of analytics data to retrieve. The value for days must be `30`, `90` or `365`. The default is `30`]' \ '--debug[Display any debugging information]' \ - '--github[Open the GitHub source page for formula in a browser. To view formula history locally: `brew log -p` formula]' \ + '(--bottle)--github[Open the GitHub source page for formula in a browser. To view formula history locally: `brew log -p` formula]' \ '--help[Show this message]' \ '(--all)--installed[Print JSON of formulae that are currently installed]' \ '--json[Print a JSON representation. Currently the default value for version is `v1` for formula. For formula and cask use `v2`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew]' \ @@ -385,7 +386,7 @@ _brew_abv() { '(--cask)--formula[Treat all named arguments as formulae]' \ '*::formula:__brew_formulae' \ - cask \ - '(--formula)--cask[Treat all named arguments as casks]' \ + '(--formula --bottle)--cask[Treat all named arguments as casks]' \ '*::cask:__brew_casks' } @@ -890,11 +891,12 @@ _brew_homepage() { _brew_info() { _arguments \ '(--installed)--all[Print JSON of all available formulae]' \ - '--analytics[List global Homebrew analytics data or, if specified, installation and build error data for formula (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set)]' \ + '(--bottle)--analytics[List global Homebrew analytics data or, if specified, installation and build error data for formula (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set)]' \ + '(--cask --analytics --github)--bottle[Output information about the bottles for formula and its dependencies]' \ '--category[Which type of analytics data to retrieve. The value for category must be `install`, `install-on-request` or `build-error`; `cask-install` or `os-version` may be specified if formula is not. The default is `install`]' \ '--days[How many days of analytics data to retrieve. The value for days must be `30`, `90` or `365`. The default is `30`]' \ '--debug[Display any debugging information]' \ - '--github[Open the GitHub source page for formula in a browser. To view formula history locally: `brew log -p` formula]' \ + '(--bottle)--github[Open the GitHub source page for formula in a browser. To view formula history locally: `brew log -p` formula]' \ '--help[Show this message]' \ '(--all)--installed[Print JSON of formulae that are currently installed]' \ '--json[Print a JSON representation. Currently the default value for version is `v1` for formula. For formula and cask use `v2`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew]' \ @@ -904,7 +906,7 @@ _brew_info() { '(--cask)--formula[Treat all named arguments as formulae]' \ '*::formula:__brew_formulae' \ - cask \ - '(--formula)--cask[Treat all named arguments as casks]' \ + '(--formula --bottle)--cask[Treat all named arguments as casks]' \ '*::cask:__brew_casks' } diff --git a/docs/Manpage.md b/docs/Manpage.md index cfe55eec03..e4c93bad25 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -245,6 +245,8 @@ If a *`formula`* or *`cask`* is provided, show summary of information about it. Open the GitHub source page for *`formula`* in a browser. To view formula history locally: `brew log -p` *`formula`* * `--json`: Print a JSON representation. Currently the default value for *`version`* is `v1` for *`formula`*. For *`formula`* and *`cask`* use `v2`. See the docs for examples of using the JSON output: +* `--bottle`: + Output information about the bottles for *`formula`* and its dependencies. * `--installed`: Print JSON of formulae that are currently installed. * `--all`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 22797ed90f..44877bae46 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -303,6 +303,10 @@ Open the GitHub source page for \fIformula\fR in a browser\. To view formula his Print a JSON representation\. Currently the default value for \fIversion\fR is \fBv1\fR for \fIformula\fR\. For \fIformula\fR and \fIcask\fR use \fBv2\fR\. See the docs for examples of using the JSON output: \fIhttps://docs\.brew\.sh/Querying\-Brew\fR . .TP +\fB\-\-bottle\fR +Output information about the bottles for \fIformula\fR and its dependencies\. +. +.TP \fB\-\-installed\fR Print JSON of formulae that are currently installed\. .