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

Allow exclude types #2459

Open
aria3ppp opened this issue Sep 20, 2023 · 2 comments
Open

Allow exclude types #2459

aria3ppp opened this issue Sep 20, 2023 · 2 comments

Comments

@aria3ppp
Copy link

In the same way that --path and --exclude-path both exist together, I think it should be the same for --type and --exclude-type.
So I think there should be an --exclude-type option that excludes types from building/generating!

@bufdev
Copy link
Member

bufdev commented Sep 20, 2023

Can you explain what the use case is for this?

@aria3ppp
Copy link
Author

aria3ppp commented Sep 20, 2023

Can you explain what the use case is for this?

Yup!
Maybe my case is supper rare but i have many services:

package api;

service A {}
service B {}
service C {}
service D {}
service E {}

Among them there's two specific services: A and B
It's a oneof situation: that means i need one of them at a time.
So it's simple to just exclude one of them e.g. by --exclude-type api.A to build or generate and not include all other services one by one and just not mentioning api.A: --type api.B --type api.C --type api.D --type api.E

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

No branches or pull requests

2 participants