YAML wrapper for the fantastic
go get github.com/gomatic/yq
yq [options...] filter -- [files...]
--. It's mandatory so
yq can distinguish the files from the options and filter.
It also allows
yq to determine that input is coming from stdin (when stdin is a terminal).
jq can output JSON that isn't well-formed, such output can't easily be converted back to yaml.
In such cases, the JSON will be output.