Open Dmole opened 3 years ago
This is not the yq library you're looking for.
How not?
xq | grep -iP "kislyuk|tab|xml-output"
See https://github.com/kislyuk/xq for more information.
--xml-output, -x Transcode jq JSON output back into XML and emit it
--tab use tabs for indentation;
(curl -v https://github.com/kislyuk/xq > /dev/null ) 2>&1 | grep "location:"
< location: https://github.com/kislyuk/yq
Apologies, I did not look carefully enough. Yes, jq has a --tab
option and that option has no effect on the output of xq --xml-output
. I will document this.
@Dmole you can postprocess xq
output with tidy -i
.
xq --xml-output --tab "." $EG
This should be noted in --help or better yet fixed.