Update grpcurl commands in README

The grpcurl commands for exporting proto files and protoset files in the README are updated. The IP address has been changed to localhost and port number to '8787'. Also, the service name is adjusted to 'my.custom.server.Service'. Instructions for use of specific command options are added for enhanced clarity.
This commit is contained in:
Eitol 2024-07-10 11:15:35 -04:00
parent 414ffa3a2c
commit 9706903f6e
1 changed files with 4 additions and 2 deletions

View File

@ -160,9 +160,11 @@ grpcurl -protoset my-protos.bin list
# Using proto sources # Using proto sources
grpcurl -import-path ../protos -proto my-stuff.proto list grpcurl -import-path ../protos -proto my-stuff.proto list
# Export proto files # Export proto files (use -proto-out-dir to specify the output directory)
grpcurl -plaintext -proto-out-dir "out_protos" "192.168.100.1:9200" describe Api.Service grpcurl -plaintext -proto-out-dir "out_protos" "localhost:8787" describe my.custom.server.Service
# Export protoset file (use -protoset-out to specify the output file)
grpcurl -plaintext -protoset-out "out.protoset" "localhost:8787" describe my.custom.server.Service
``` ```