-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Turborepo): Move more CLI stuff out of run code (#7085)
### Description - setup `api_auth` and `api_client` outside of a run - remove the lifetime from `Opts` and related structs - keep a copy of `Opts` on `Run`. This is likely not the final structure, but is an intermediate step. - keep a copy of `api_auth` on `Run` - Move most of the calculations on `Opts` into the constructor for `Run`. This should likely eventually be a `TryFrom<CommandBase>` instead of `new`. The goal is to be able to make `Run` itself immutable since all of the config and options will have been resolved ahead of time ### Testing Instructions Existing test suite Closes TURBO-2135 --------- Co-authored-by: Greg Soltis <Greg Soltis>
- Loading branch information
Greg Soltis
committed
Jan 25, 2024
1 parent
a1a2b6b
commit 59350bf
Showing
13 changed files
with
149 additions
and
144 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
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
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
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
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
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
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
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
Oops, something went wrong.
59350bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
turbo-site – ./docs
turbo.build
www.turborepo.org
turbo.vercel.app
www.turbo.build
turbopack.org
turborepo.com
www.turbopack.org
turbo.vercel.sh
turborepo.org
www.turborepo.com
turbo-site.vercel.sh
turbo-site-git-main.vercel.sh