-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add new option to support compiling a single project #3868
Conversation
e4b86a9
to
d041784
Compare
/// A list of projects to compile. | ||
/// If excluded, all projects will be compiled | ||
#[clap(long)] | ||
projects: Vec<String>, |
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.
I would expect this to just be project
and that you would specify it multiple times to specify multiple projects. Can you confirm what it actually looks like to pass multiple projects? I think it would be not great to have to pass multiple projects using one flag (how are you supposed to delineate them? commas? spaces?)
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.
yeah I think it doesn't do any space / command delimiting by default. I updated the language a bit to better explain.
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.
Cool. Can just make this --project
?
projects: Vec<String>, | |
project: Vec<String>, |
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.
@captbaritone Incase it isn't clear from the code. I kept the rust name as projects
since it truly is a list of projects to compile. The clap name is project
since the user can pass projects like so --project projectA --project projectB
…w they can pass it multiple times
f55d061
to
11e05cf
Compare
@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Add new option to support compiling a single project #3868
Usage
yarn relay-compiler -p projectA -p projectB