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

[xq] --tab is not compatible with --xml-output #124

Open
Dmole opened this issue Jun 26, 2021 · 4 comments
Open

[xq] --tab is not compatible with --xml-output #124

Dmole opened this issue Jun 26, 2021 · 4 comments

Comments

@Dmole
Copy link

Dmole commented Jun 26, 2021

xq --xml-output --tab "." $EG

This should be noted in --help or better yet fixed.

@kislyuk
Copy link
Owner

kislyuk commented Oct 31, 2021

This is not the yq library you're looking for.

@kislyuk kislyuk closed this as completed Oct 31, 2021
@Dmole
Copy link
Author

Dmole commented Oct 31, 2021

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

@kislyuk
Copy link
Owner

kislyuk commented Nov 1, 2021

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.

@kislyuk kislyuk reopened this Nov 1, 2021
@pyhedgehog
Copy link

@Dmole you can postprocess xq output with tidy -i.

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

3 participants