From 600826a7e7817b2cad0a52175f87af3c24812ca3 Mon Sep 17 00:00:00 2001 From: botantony Date: Fri, 25 Apr 2025 17:20:40 +0200 Subject: [PATCH] `no_autobump!`: update manpage and completions Signed-off-by: botantony --- completions/bash/brew | 1 + completions/fish/brew.fish | 1 + completions/zsh/_brew | 5 +++-- docs/Manpage.md | 11 ++++++++--- manpages/brew.1 | 9 ++++++--- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/completions/bash/brew b/completions/bash/brew index 2894cc704c..ff172835c2 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -652,6 +652,7 @@ _brew_bundle() { __brewcomp " --all --cask + --check --cleanup --debug --describe diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 398951e1d8..ff6e37aa56 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -507,6 +507,7 @@ __fish_brew_complete_sub_cmd 'bundle' 'env' __fish_brew_complete_sub_cmd 'bundle' 'edit' __fish_brew_complete_arg 'bundle' -l all -d '`list` all dependencies' __fish_brew_complete_arg 'bundle' -l cask -d '`list` or `dump` Homebrew cask dependencies' +__fish_brew_complete_arg 'bundle' -l check -d 'Check that all dependencies in the Brewfile are installed before running `exec`, `sh`, or `env`' __fish_brew_complete_arg 'bundle' -l cleanup -d '`install` performs cleanup operation, same as running `cleanup --force`. This is enabled by default if `$HOMEBREW_BUNDLE_INSTALL_CLEANUP` is set and `--global` is passed' __fish_brew_complete_arg 'bundle' -l debug -d 'Display any debugging information' __fish_brew_complete_arg 'bundle' -l describe -d '`dump` adds a description comment above each line, unless the dependency does not have a description. This is enabled by default if `$HOMEBREW_BUNDLE_DUMP_DESCRIBE` is set' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 48bd1ac9d9..72453df3d6 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -540,14 +540,14 @@ _brew_bump() { '--full-name[Print formulae/casks with fully-qualified names]' \ '--help[Show this message]' \ '(--tap --eval-all --auto)--installed[Check formulae and casks that are currently installed]' \ - '--no-autobump[Ignore formulae/casks in autobump list (official repositories only)]' \ + '(--tap)--no-autobump[Ignore formulae/casks in autobump list (official repositories only)]' \ '--no-fork[Don'\''t try to fork the repository]' \ '(--open-pr)--no-pull-requests[Do not retrieve pull requests from GitHub]' \ '(--no-pull-requests)--open-pr[Open a pull request for the new version if none have been opened yet]' \ '--quiet[Make some output more quiet]' \ '--repology[Use Repology to check for outdated packages]' \ '--start-with[Letter or word that the list of package results should alphabetically follow]' \ - '(--installed --no-auto)--tap[Check formulae and casks within the given tap, specified as user`/`repo]' \ + '(--installed --no-autobump)--tap[Check formulae and casks within the given tap, specified as user`/`repo]' \ '--verbose[Make some output more verbose]' \ - formula \ '(--cask)--formula[Check only formulae]' \ @@ -650,6 +650,7 @@ _brew_bundle() { _arguments \ '(--no-vscode)--all[`list` all dependencies]' \ '--cask[`list` or `dump` Homebrew cask dependencies]' \ + '--check[Check that all dependencies in the Brewfile are installed before running `exec`, `sh`, or `env`]' \ '--cleanup[`install` performs cleanup operation, same as running `cleanup --force`. This is enabled by default if `$HOMEBREW_BUNDLE_INSTALL_CLEANUP` is set and `--global` is passed]' \ '--debug[Display any debugging information]' \ '--describe[`dump` adds a description comment above each line, unless the dependency does not have a description. This is enabled by default if `$HOMEBREW_BUNDLE_DUMP_DESCRIBE` is set]' \ diff --git a/docs/Manpage.md b/docs/Manpage.md index e5b1271006..cb6a546ff2 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -199,7 +199,7 @@ By default, only Homebrew formula dependencies are listed. of the corresponding type. Passing `--formula` also removes matches against formula aliases and old formula names. -`brew bundle exec` *`command`* +`brew bundle exec` \[--check\] *`command`* : Run an external command in an isolated build environment based on the `Brewfile` dependencies. @@ -210,11 +210,11 @@ commands like `bundle install`, `npm install`, etc. It will also add compiler flags which will help with finding keg-only dependencies like `openssl`, `icu4c`, etc. -`brew bundle sh` +`brew bundle sh` \[--check\] : Run your shell in a `brew bundle exec` environment. -`brew bundle env` +`brew bundle env` \[--check\] : Print the environment variables that would be set in a `brew bundle exec` environment. @@ -319,6 +319,11 @@ flags which will help with finding keg-only dependencies like `openssl`, : `cleanup` casks using the `zap` command instead of `uninstall`. +`--check` + +: Check that all dependencies in the Brewfile are installed before running + `exec`, `sh`, or `env`. + ### `casks` List all locally installable casks including short names. diff --git a/manpages/brew.1 b/manpages/brew.1 index fdb437dc3d..6c602fd777 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -124,15 +124,15 @@ Add entries to your \fBBrewfile\fP\&\. Adds formulae by default\. Use \fB\-\-cas \fBbrew bundle remove\fP \fIname\fP [\.\.\.] Remove entries that match \fBname\fP from your \fBBrewfile\fP\&\. Use \fB\-\-formula\fP, \fB\-\-cask\fP, \fB\-\-tap\fP, \fB\-\-mas\fP, \fB\-\-whalebrew\fP or \fB\-\-vscode\fP to remove only entries of the corresponding type\. Passing \fB\-\-formula\fP also removes matches against formula aliases and old formula names\. .TP -\fBbrew bundle exec\fP \fIcommand\fP +\fBbrew bundle exec\fP [\-\-check] \fIcommand\fP Run an external command in an isolated build environment based on the \fBBrewfile\fP dependencies\. .P This sanitized build environment ignores unrequested dependencies, which makes sure that things you didn\[u2019]t specify in your \fBBrewfile\fP won\[u2019]t get picked up by commands like \fBbundle install\fP, \fBnpm install\fP, etc\. It will also add compiler flags which will help with finding keg\-only dependencies like \fBopenssl\fP, \fBicu4c\fP, etc\. .TP -\fBbrew bundle sh\fP +\fBbrew bundle sh\fP [\-\-check] Run your shell in a \fBbrew bundle exec\fP environment\. .TP -\fBbrew bundle env\fP +\fBbrew bundle env\fP [\-\-check] Print the environment variables that would be set in a \fBbrew bundle exec\fP environment\. .TP \fB\-\-file\fP @@ -197,6 +197,9 @@ Temporarily start services while running the \fBexec\fP or \fBsh\fP command\. Th .TP \fB\-\-zap\fP \fBcleanup\fP casks using the \fBzap\fP command instead of \fBuninstall\fP\&\. +.TP +\fB\-\-check\fP +Check that all dependencies in the Brewfile are installed before running \fBexec\fP, \fBsh\fP, or \fBenv\fP\&\. .SS "\fBcasks\fP" List all locally installable casks including short names\. .SS "\fBcleanup\fP \fR[\fIoptions\fP] \fR[\fIformula\fP|\fIcask\fP \.\.\.]"