MiSawa / xq

Pure rust implementation of jq
MIT License
333 stars 18 forks source link

Print colorized json #163

Closed Humandoodlebug closed 1 year ago

Humandoodlebug commented 1 year ago

Uses the colored_json crate to colourise json output.

This works for both compact and pretty output. By default, it will select colour output if stdout is a tty, but this can be explicitly set using the -C, --color-output and -M, --monochrome-output flags (like jq).

MiSawa commented 1 year ago

Thank you for the PR! Verified that it's working nicely. I'll merge the change, fix cargo-about config and publish the new version!

MiSawa commented 1 year ago

Released v0.2.43! Thank you again :)