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
Deprecate shell -- <cmd> in favor of run <cmd> (#642)
## Summary
Makes `devbox shell -- <cmd>` print a Warning and recommend using
`devbox run <cmd>` instead. This behavior is protected behind the
UNIFIED_ENV feature flag.
Note that `devbox services` internally uses `devbox shell -- <cmd>`, so
when UNIFIED_ENV is enabled, it'll use `devbox run` instead. But it's a
bit circular... when outside of a shell, running `devbox services start`
is exactly equivalent to running `devbox run devbox services start`.
## How was it tested?
```
DEVBOX_FEATURE_UNIFIED_ENV=0 ./devbox shell --help
DEVBOX_FEATURE_UNIFIED_ENV=1 ./devbox shell --help
DEVBOX_FEATURE_UNIFIED_ENV=0 ./devbox shell -- echo "foo" # no warning
DEVBOX_FEATURE_UNIFIED_ENV=1 ./devbox shell -- echo "foo" # see warning
DEVBOX_FEATURE_UNIFIED_ENV=1 ./devbox shell -- echo '$PATH'
DEVBOX_FEATURE_UNIFIED_ENV=1 ./devbox run echo '$PATH' # same paths
```
0 commit comments