Closed shizzard closed 1 year ago
Evans reports the unknown flag --json. Documentation states:
--json
Enriched response To display more enriched response, you can use --enrich option. ... JSON output is also available with --json option.
I need the whole output to be a valid JSON to be able to handle it with jq.
jq
Basically any gRPC call with --enrich --json flags will work:
--enrich --json
$ evans \ --path <path-to-proto-library> \ --proto <path-to-proto-file> \ --host <host> \ --port <port> \ --file <request-file> \ cli call --enrich --json \ <service>.<method> evans: unknown flag: --json
--enrich option alone works as expected.
--enrich
Whole evans output is a valid JSON object.
evans
protoc
UPDATE: after digging into the code i found that the proper flag is --output json. I suppose you can just fix the documentation.
--output json
Thank you! Fixed in #653.
Evans reports the unknown flag
--json
. Documentation states:I need the whole output to be a valid JSON to be able to handle it with
jq
.To reproduce
Basically any gRPC call with
--enrich --json
flags will work:--enrich
option alone works as expected.Expected behavior
Whole
evans
output is a valid JSON object.Environment
protoc
version: 3.21.12