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

How to use options in nanopb in buf CLI? #3662

Closed
xiongyu0523 opened this issue Mar 6, 2025 · 1 comment
Closed

How to use options in nanopb in buf CLI? #3662

xiongyu0523 opened this issue Mar 6, 2025 · 1 comment

Comments

@xiongyu0523
Copy link

GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)

No response

What's up?

Hi,

Thanks for bringing this powerful tool to community

I m trying to use nanopb with buf cli, and it works basically, but I want to know how can I use options from nanopb.

e.g. currently i specify package in the proto file the default behavior of nanopb will include the package into the name of type, which is not needed, it provides a option mangle_names to strip but it only works at file level, I want to how to add this to buf.gen.yaml?

@emcfarlane
Copy link
Contributor

Hi @xiongyu0523, you are able to add options to any generator using the opt parameter, see the buf.gen.yaml docs. Please provide more details and a reproducible example so we are able to help you further. There is also a slack channel to provide community support.

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