Skip to content

[run] Add --all-projects flag #2543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 3, 2025
Merged

Conversation

mikeland73
Copy link
Contributor

Summary

Allows running a script on all devbox projects nested in a directory. Useful for monorepos. Example:

devbox run --all-projects lint

Doing

devbox run --all-projects without a script name shows all available scripts among all nested projects.

@savil I kinda regret changing run to remove the need for --. It means that this flag only works for defined scripts, not for arbitrary commands :(

How was it tested?

devbox run --all-projects fmt

@mikeland73 mikeland73 requested review from gcurtis and savil February 28, 2025 21:13
@mikeland73 mikeland73 merged commit 41daddd into main Mar 3, 2025
22 of 29 checks passed
@mikeland73 mikeland73 deleted the landau/run-script-on-all-projects branch March 3, 2025 18:15
jefft pushed a commit to jefft/devbox that referenced this pull request Mar 9, 2025
## Summary

Allows running a script on all devbox projects nested in a directory.
Useful for monorepos. Example:

`devbox run --all-projects lint`

Doing 

`devbox run --all-projects` without a script name shows all available
scripts among all nested projects.

@savil I kinda regret changing `run` to remove the need for `--`. It
means that this flag only works for defined scripts, not for arbitrary
commands :(

## How was it tested?

`devbox run --all-projects fmt`
jefft pushed a commit to jefft/devbox that referenced this pull request Mar 9, 2025
## Summary

Allows running a script on all devbox projects nested in a directory.
Useful for monorepos. Example:

`devbox run --all-projects lint`

Doing 

`devbox run --all-projects` without a script name shows all available
scripts among all nested projects.

@savil I kinda regret changing `run` to remove the need for `--`. It
means that this flag only works for defined scripts, not for arbitrary
commands :(

## How was it tested?

`devbox run --all-projects fmt`
jefft pushed a commit to jefft/devbox that referenced this pull request Mar 9, 2025
## Summary

Allows running a script on all devbox projects nested in a directory.
Useful for monorepos. Example:

`devbox run --all-projects lint`

Doing 

`devbox run --all-projects` without a script name shows all available
scripts among all nested projects.

@savil I kinda regret changing `run` to remove the need for `--`. It
means that this flag only works for defined scripts, not for arbitrary
commands :(

## How was it tested?

`devbox run --all-projects fmt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants