fullstorydev / grpcurl

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

Feature request: get ".proto" file from URI #380

Open andresvia opened 1 year ago

andresvia commented 1 year ago

Often I find myself downloading a .proto file from the webz just to pass it to grpcurl, I know I can easily script it out but could probably be nice to have it as a grpcurl feature.

Example:

old workflow:

wget --continue https://raw.githubusercontent.com/grpc/grpc/master/src/proto/grpc/health/v1/health.proto 
grpcurl -proto health.proto -plaintext  127.0.0.1:8080 grpc.health.v1.Health/Watch  

new workflow

grpcurl -proto https://raw.githubusercontent.com/grpc/grpc/master/src/proto/grpc/health/v1/health.proto -plaintext  127.0.0.1:8080 grpc.health.v1.Health/Watch