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

Variables support in the "options" section #5

Open
strobil opened this issue Aug 16, 2021 · 1 comment
Open

Variables support in the "options" section #5

strobil opened this issue Aug 16, 2021 · 1 comment

Comments

@strobil
Copy link

strobil commented Aug 16, 2021

Hello!
I have a separate config file for grpc-gw config, so a directory structure looks like this:

.
├── powerproto.yaml
├── service_1
│   ├── service_1.proto
│   └── service_1.yaml
└── service_2
    ├── service_2.proto
    └── service_2.yaml

I need to pass --grpc-gateway_opt=grpc_api_configuration=service_1/service_1.yaml option, but looks like an option array does not have variable parsing support.

So i can't specify options like this: --grpc-gateway_opt=grpc_api_configuration=$SOURCE_RELATIVE/grpc_api_config.yaml

It would be great if powerproto will have support of variables inside of options array. Thanks!

@storyicon
Copy link
Owner

Sorry I'm late, I was delayed by some things some time ago, I have supported this feature via #6:
You should now be able to use the variables in the options field of the config file, like in importPaths.
Thanks for your suggestion. If this PR doesn't meet your expectations, please feel free to contact me.

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