4 Commits

Author SHA1 Message Date
kn
4bee18f88d Update to yq 2.10.0
- Add support for in-place editing (yq -yi)
- Add argcomplete integration
2019-12-24 19:24:31 +00:00
kmos
184417b1a5 Move tests to MODPY_PYTEST and make results more legible 2019-11-23 23:49:17 +00:00
kn
1aee005170 Update to yq 2.9.2
- Fix interrupted release
- Fix documentation build
- Add -Y/–yaml-roundtrip for preserving YAML styles and tags
- Filter out -C and separate commingled yq and jq short options
- Set default block sequence indentation to 2 spaces, –indentless for 0
- Make main body of yq callable as a library function
- Test and release infrastructure updates
2019-11-09 17:41:10 +00:00
kn
ea5ce27483 Import yq
yq takes YAML input, converts it to JSON, and filters it through jq(1).

No output conversion is done by default.  Command line arguments are forwarded.
yq exits 1 on YAML parsing errors, otherwise jq's exit code is forwarded.

YAML tags in the input are ignored (any nested data is treated as untagged).
Key order is preserved.

xq behaves like yq but takes XML input.  Multiple XML documents can be passed
in separate files/streams.  Entity expansion and DTD resolution is disabled to
avoid XML parsing vulnerabilities.

Feedback rsadowski kmos
OK kmos
2019-11-05 18:01:02 +00:00