Working with KYAML
Encode kyaml: plain string scalar
cat
yq -o=kyaml '.' sample.yml"cat"encode flow mapping and sequence
encode non-string scalars
quote non-identifier keys
escape quoted strings
preserve comments when encoding
Encode kyaml: anchors and aliases
Encode kyaml: yaml to kyaml shows formatting differences
Encode kyaml: nested lists of objects
Last updated