Skip to content

Conversation

rafaeltab
Copy link

Options:

-R, --raw-input           read each line as string instead of JSON
-c, --compact-output      compact instead of pretty-printed output
-r, --raw-output          output strings without escapes and quotes
-S, --sort-keys           sort keys of each object on output
-C, --color-output        colorize JSON output
-M, --monochrome-output   disable colored output
--tab                 use tabs for indentation;
--indent n            use n spaces for indentation (max 7 spaces)

I also added support for custom colors as is normally available using the JQ_COLORS environment variable.
https://jqlang.github.io/jq/manual/#colors

TODO: some code cleaning, and more documentation

@rafaeltab rafaeltab mentioned this pull request Apr 28, 2024
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

Successfully merging this pull request may close these issues.

1 participant