Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: fivethree Clear Filter

Jqfmt like gofmt, but for jq

Description I'm frequently passed long shell one-liners that require some visual inspection before running. These days, there's about as much jq in that one-liner as there is bash. I wrote jqfmt to help add line breaks in sensible locations while reading (or writing!) jq. At time of initial development, I naturally turned to https://github.com/itchyny/gojq expecting to be able to generate and walk a syntax tree—but gojq didn't seem to provide an AST that could be "walked," and it doesn't expor