You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
cmd/bundle: add brew bundle sh and brew bundle env helper commands.
These are (mostly) shorthands for `brew bundle exec sh` and
`brew bundle exec env` that provide `brew`-like shell and environment
features on top of `brew bundle exec`.
Copy file name to clipboardExpand all lines: cmd/bundle.rb
+28-3
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,12 @@ class BundleCmd < AbstractCommand
53
53
Run an external command in an isolated build environment based on the `Brewfile` dependencies.
54
54
55
55
This sanitized build environment ignores unrequested dependencies, which makes sure that things you didn't specify in your `Brewfile` won't get picked up by 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.
56
+
57
+
`brew bundle sh`:
58
+
Run your shell in a `brew bundle exec` environment.
59
+
60
+
`brew bundle env`:
61
+
Print the environment variables that would be set in a `brew bundle exec` environment.
56
62
EOS
57
63
flag"--file=",
58
64
description: "Read the `Brewfile` from this location. Use `--file=-` to pipe to stdin/stdout."
@@ -110,7 +116,7 @@ class BundleCmd < AbstractCommand
0 commit comments