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

One output file from multiple services in multiple files. #149

Open
damouse opened this issue Dec 6, 2019 · 0 comments
Open

One output file from multiple services in multiple files. #149

damouse opened this issue Dec 6, 2019 · 0 comments

Comments

@damouse
Copy link

damouse commented Dec 6, 2019

First of all-- fantastic library, thanks for all the work!

For my use case I need one output file, but I'd like to use multiple proto files each with their own service definitions. This is because the output will automatically be ingested by other code, but the input is going to be managed by developers, and having multiple files on that end will help with organization.

My templates have some static code at the top that should be repeated once for the entire file, but when I run with multiple service definitions in one or more proto files, the whole template is repeated, once for each service. This leads to repeated imports and package declarations in the output. Is there any way to iterate over services or files in the template, so I can control what is being repeated? I don't think I saw multiple services in any of the examples provided, is this supported?

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

1 participant