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 option parameter for the generator #17

Open
Tommy-42 opened this issue Apr 5, 2018 · 1 comment
Open

add option parameter for the generator #17

Tommy-42 opened this issue Apr 5, 2018 · 1 comment

Comments

@Tommy-42
Copy link

Tommy-42 commented Apr 5, 2018

We cannot add option to the choosen generator.

For example with protoc-gen-gotemplate

you can add debug or template_dir option to the generator like :
--gotemplate_out=template_dir=.,debug=true:.

It could be cool to have an option in the Protobuild.toml to be able to add them something like :

[[generator]]
  name = "gotemplate"

  [generator.options]
    debug = true
    template_dir = "."

What do you think ?

@stevvooe
Copy link
Member

Protobuild currently calculates the options to be passed into the generator. You'd have to come up with a way to specify extra options for each instantiation of the generator. Right now, generator is just a string field.

How would this interact with what is already present?

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