Skip to content

Releases: 0k/shyaml-rs

0.3.2

04 Feb 09:55
62b37b6

Choose a tag to compare

Fix

  • -q flag now silences errors for all actions, not just get-value [Valentin Lab]

    Previously -q/--quiet only suppressed path errors in
    get-value via std::process::exit(1) in individual handlers.
    Other actions (get-values-0, keys, values, etc.) would
    still print error messages and exit 127.

    Fix by handling quiet mode at the run() level: errors from the
    execution phase are caught and converted to a silent exit code 1.
    This also removes the scattered std::process::exit(1) calls
    which bypassed normal cleanup.

0.3.1

02 Feb 10:50
5714ea3

Choose a tag to compare

Fix

  • Prevent spurious new-lines to be added to literal values from complex structures. [Valentin Lab]

0.3.0

30 Jan 05:18
e281847

Choose a tag to compare

New

  • Preserve comments and formatting during mutations. [Valentin Lab]

    set-value, del, and apply now preserve original document
    formatting including comments and quote styles. Previously, mutations
    would reformat the entire document.

    Also fixes multi-document YAML streams with compound commands incorrectly
    including --- markers in non-yaml output mode.

    Additional improvements:

    • Null values automatically convert to mappings when setting nested paths
    • Better handling of null base values in apply