* disable hard line wrapping
The formatting defaults of the used YAML library changed.
Since yq has no mechanism for the user to override them,
change them back to what we used before.
* Clamp YAML indent and close dumper after encoding.
Clamp indent to the library's 2-9 range, wrap dumper setup errors with %w,
and always close the dumper after dump.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Maximilian Gaß <m.gass@babiel.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* Refactor ordered_map into separate files
Separate json and xml, from the regular yaml.
Makes it possible to compile, without those...
* Refactor encoder and decoder creation
Use more consistent parameters vs globals
Return errors instead of calling panic()
* Allow build without json and xml support