-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: extract logic for defaulting to run into helper (#10011)
### Description Refactor to pull the logic for getting a `Command` from `cli_args` into a named helper. The `get_command` helper further uses a helper that makes it clear that `Command::Run` is the default if no command is specified when Turborepo is invoked. There's still some future work to do based on the comment here: https://github.com/vercel/turborepo/blob/b6a97bdc947f0b4855a1c9051df7eb0295cae39e/crates/turborepo-lib/src/cli/mod.rs#L1250 to make `cli_args` to be non-mutable.
- Loading branch information
1 parent
ec03f1d
commit 88f2241
Showing
1 changed file
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters