kislyuk / yq

Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
https://kislyuk.github.io/yq/
Apache License 2.0
2.53k stars 81 forks source link

Header %YAML 1.1 and '---' not preserved #181

Closed ffirenze closed 4 months ago

ffirenze commented 4 months ago

The header was not preserved, and some preograms reqires it to parse the file.

(Also any comment was preserved on version 3.1.0-3)

kislyuk commented 4 months ago

Hello - yq does not support emitting the YAML header, and there are no plans to support it. Work on comments is tracked in https://github.com/kislyuk/yq/issues/106