lileio / lile

Easily generate gRPC services in Go ⚡️
MIT License
1.5k stars 88 forks source link

One test stub created when wildcard * used to specify all proto files #50

Closed Pikesh closed 6 years ago

Pikesh commented 6 years ago

protoc -I ./Protocols --lile-server_out=. --go_out=plugins=grpc:. .Protos/*.proto ;\

This generates only one test stub for the first file under /Protos. Expected output is creating as many stubs as number of files under /Protos

Pikesh commented 6 years ago

This is because of difference in behavior in bash/cmd. Above works fine in bash. But for cmd something like should work:

for %i in (./Protocols/*.proto) do protoc -I ./Protos --lile-server_out=. --go_out=plugins=grpc:. ./Protos/%i