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
## Summary
Inspired by @jimmidyson's awesome
[post](https://eng.d2iq.com/blog/a-long-journey-to-cross-platform-developer-tooling-utopia-for-now/)
I thought we could remove the need for `--` every time you want to run
something with devbox that has flags.
This change assumes that when a user runs `devbox run` the first
non-flag arg after "run" is part of the command or the script name the
user wants to run. This relies on `run` never having subcommands (which
I think will be true forever). So we transform:
`devbox run python --version`
into
`devbox run -- python --version`
If command already has `--` then we do nothing.
This change is fully backward compatible.
@LucilleH I'm somewhat sure I fixed the issues from demo. PTAL
## How was it tested?
```
devbox add python
devbox run python --version
Python 3.11.4
devbox run -c examples/development/python/pip python --version
```
0 commit comments