Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use yaml instead of json #388

Open
anti-social opened this issue Apr 22, 2023 · 1 comment
Open

Allow to use yaml instead of json #388

anti-social opened this issue Apr 22, 2023 · 1 comment

Comments

@anti-social
Copy link

Yaml is more convenient for writing and modifying big chunks of data. So my suggest is to add yaml support.

It is possible to do in 2 ways:

  • add an option like -data-yaml (possibly with a short version -Y) for using instead of -d
  • autodetect yaml if there is a --- mark in the first line of data
@jhump
Copy link
Contributor

jhump commented Apr 24, 2023

As a work-around, you can use the tool yq and pipe your input through that and into the stdin of grpcurl. IIRC, yq . will print the input as JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants