Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

tbezman
Copy link
Contributor

@tbezman tbezman commented Apr 13, 2022

Add new option to support compiling a single project #3868

Usage

yarn relay-compiler -p projectA -p projectB

@tbezman tbezman marked this pull request as ready for review April 13, 2022 22:39
/// A list of projects to compile.
/// If excluded, all projects will be compiled
#[clap(long)]
projects: Vec<String>,
Copy link
Contributor

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?)

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Suggested change
projects: Vec<String>,
project: Vec<String>,

Copy link
Contributor Author

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

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants