fullstorydev/grpcurl — reverse-engineered prompt
Reverse engineered prompt
Build me a Go command line tool that works like curl for gRPC servers. I want to point it at a host and method, send a request written as JSON, and have it handle turning that into the protobuf message the server expects, then print the response in a readable JSON format.
It should also let me explore a gRPC server, like listing available services and describing methods. If the server supports reflection, use that. If it doesn’t, let me provide proto files or compiled descriptor files so the tool still knows the schema.
Please include practical options people need when testing real services, like plaintext or TLS connections, custom certificates, client certificates, request headers or metadata, reading the request body from stdin, and support for normal, server streaming, client streaming, and interactive bi directional streaming calls.
Make it easy to install, test, and run locally. Look up current Go and gRPC docs online if you need to.
Want more depth? Deep Reverse