Skip to content

Commit b97c763

Browse files
authored
Merge pull request #19814 from Homebrew/bundle_services
Add `HOMEBREW_BUNDLE_SERVICES` variable to `brew bundle`
2 parents b711ecc + 60c047b commit b97c763

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

Library/Homebrew/cmd/bundle.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ class Bundle < AbstractCommand
8787
switch "--install",
8888
description: "Run `install` before continuing to other operations e.g. `exec`."
8989
switch "--services",
90-
description: "Temporarily start services while running the `exec` or `sh` command."
90+
env: :bundle_services,
91+
description: "Temporarily start services while running the `exec` or `sh` command. " \
92+
"This is enabled by default if `$HOMEBREW_BUNDLE_SERVICES` is set."
9193
switch "-f", "--force",
9294
description: "`install` runs with `--force`/`--overwrite`. " \
9395
"`dump` overwrites an existing `Brewfile`. " \

completions/fish/brew.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ __fish_brew_complete_arg 'bundle' -l no-restart -d '`dump` does not add `restart
521521
__fish_brew_complete_arg 'bundle' -l no-upgrade -d '`install` does not run `brew upgrade` on outdated dependencies. `check` does not check for outdated dependencies. Note they may still be upgraded by `brew install` if needed. This is enabled by default if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set'
522522
__fish_brew_complete_arg 'bundle' -l no-vscode -d '`dump` without VSCode (and forks/variants) extensions. This is enabled by default if `$HOMEBREW_BUNDLE_DUMP_NO_VSCODE` is set'
523523
__fish_brew_complete_arg 'bundle' -l quiet -d 'Make some output more quiet'
524-
__fish_brew_complete_arg 'bundle' -l services -d 'Temporarily start services while running the `exec` or `sh` command'
524+
__fish_brew_complete_arg 'bundle' -l services -d 'Temporarily start services while running the `exec` or `sh` command. This is enabled by default if `$HOMEBREW_BUNDLE_SERVICES` is set'
525525
__fish_brew_complete_arg 'bundle' -l tap -d '`list` or `dump` Homebrew tap dependencies'
526526
__fish_brew_complete_arg 'bundle' -l upgrade -d '`install` runs `brew upgrade` on outdated dependencies, even if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set'
527527
__fish_brew_complete_arg 'bundle' -l upgrade-formulae -d '`install` runs `brew upgrade` on any of these comma-separated formulae, even if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set'

completions/zsh/_brew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ _brew_bundle() {
664664
'--no-upgrade[`install` does not run `brew upgrade` on outdated dependencies. `check` does not check for outdated dependencies. Note they may still be upgraded by `brew install` if needed. This is enabled by default if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set]' \
665665
'(--all --vscode)--no-vscode[`dump` without VSCode (and forks/variants) extensions. This is enabled by default if `$HOMEBREW_BUNDLE_DUMP_NO_VSCODE` is set]' \
666666
'--quiet[Make some output more quiet]' \
667-
'--services[Temporarily start services while running the `exec` or `sh` command]' \
667+
'--services[Temporarily start services while running the `exec` or `sh` command. This is enabled by default if `$HOMEBREW_BUNDLE_SERVICES` is set]' \
668668
'--tap[`list` or `dump` Homebrew tap dependencies]' \
669669
'(--install)--upgrade[`install` runs `brew upgrade` on outdated dependencies, even if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set]' \
670670
'--upgrade-formulae[`install` runs `brew upgrade` on any of these comma-separated formulae, even if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set]' \

docs/Manpage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ flags which will help with finding keg-only dependencies like `openssl`,
258258

259259
`--services`
260260

261-
: Temporarily start services while running the `exec` or `sh` command.
261+
: Temporarily start services while running the `exec` or `sh` command. This is
262+
enabled by default if `$HOMEBREW_BUNDLE_SERVICES` is set.
262263

263264
`-f`, `--force`
264265

manpages/brew.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Read from or write to the \fBBrewfile\fP from \fB$HOMEBREW_BUNDLE_FILE_GLOBAL\fP
157157
Run \fBinstall\fP before continuing to other operations e\.g\. \fBexec\fP\&\.
158158
.TP
159159
\fB\-\-services\fP
160-
Temporarily start services while running the \fBexec\fP or \fBsh\fP command\.
160+
Temporarily start services while running the \fBexec\fP or \fBsh\fP command\. This is enabled by default if \fB$HOMEBREW_BUNDLE_SERVICES\fP is set\.
161161
.TP
162162
\fB\-f\fP, \fB\-\-force\fP
163163
\fBinstall\fP runs with \fB\-\-force\fP/\fB\-\-overwrite\fP\&\. \fBdump\fP overwrites an existing \fBBrewfile\fP\&\. \fBcleanup\fP actually performs its cleanup operations\.

0 commit comments

Comments
 (0)