What does HackerNews think of yq?
Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
Language:
Python
jq is great! Just so you know, there are similar programs for many other languages, like yq [0]. Also, there are interactive `jq` prompts like `ijq` [1].
I personally find the yq tool from https://github.com/kislyuk/yq much more useful: it has all the same options and formats as `jq` (as it's really a wrapper around jq). Rather than the `yq` in the OP here where only partial functionality exists.
There is also yq [1], which attempts the same for yaml, toml and xml. (And confusingly also contains a binary named "xq" for the xml part - however, it uses jq for querying instead of xpath)
There's already tomlq from https://github.com/kislyuk/yq, which can query TOML using jq syntax.
Shameless plug: my project yq (https://github.com/kislyuk/yq) (pip install yq) includes a utility, xq, which transcodes XML to JSON using the Goessner JsonPath transformation (https://www.xml.com/pub/a/2006/05/31/converting-between-xml-...) so you can use jq to query XML.
There's also jq for yaml: https://github.com/kislyuk/yq
What about yq, for parsing the increasing amount of yaml? Though there seems to be multiple competing tools by the same name...
jq is by far the best developed and has the most intuitive syntax, but it doesn't have a formal spec for its language.
I have been maintaining https://github.com/kislyuk/yq, which wraps jq with a transcoder for YAML and XML.