From 142da3b2f58309c68f580160abf46c106a5c1c62 Mon Sep 17 00:00:00 2001 From: Eitol Date: Wed, 10 Jul 2024 10:14:42 -0400 Subject: [PATCH] Update 'proto-out' command to 'proto-out-dir' The command for exporting proto files and setting the output directory has been updated from 'proto-out' to 'proto-out-dir'. This change has been made both in the README and the grpcurl go file. This makes the command name more descriptive, accurately reflecting its functionality. --- README.md | 2 +- cmd/grpcurl/grpcurl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e2d4b33..5e6c2f7 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ grpcurl -protoset my-protos.bin list grpcurl -import-path ../protos -proto my-stuff.proto list # Export proto files -grpcurl -plaintext -proto-out "out_protos" "192.168.100.1:9200" describe Api.Service +grpcurl -plaintext -proto-out-dir "out_protos" "192.168.100.1:9200" describe Api.Service ``` diff --git a/cmd/grpcurl/grpcurl.go b/cmd/grpcurl/grpcurl.go index 73e31f4..80f87bf 100644 --- a/cmd/grpcurl/grpcurl.go +++ b/cmd/grpcurl/grpcurl.go @@ -151,7 +151,7 @@ var ( file if this option is given. When invoking an RPC and this option is given, the method being invoked and its transitive dependencies will be included in the output file.`)) - protoOut = flags.String("proto-out", "", prettify(` + protoOut = flags.String("proto-out-dir", "", prettify(` The name of a directory where the generated .proto files will be written. With the list and describe verbs, the listed or described elements and their transitive dependencies will be written as .proto files in the