fullstorydev / grpcurl

Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers
MIT License
10.36k stars 497 forks source link

Proto import file globs #339

Open kriswuollett opened 1 year ago

kriswuollett commented 1 year ago

Perhaps to satisfy some use cases like error handling conventions in #238, could file globs be supported? Assuming someone doesn't have file naming it would be a lot easier to use something like --protos .:my_org/**/*.proto --protos ./third_party:**/*.proto than listing individual proto files to do things like reflect on custom error details. The order of protos parameter would determine the lookup priority if there are any naming conflicts.

My use case would be checking in all third party protos like those from https://github.com/googleapis/api-common-protos into ./third_party and be able to use the convention where things like FieldViolation is returned in gRPC errors.