Releases: 0k/shyaml-rs
0.3.2
Fix
-
-qflag now silences errors for all actions, not justget-value[Valentin Lab]Previously
-q/--quietonly suppressed path errors in
get-valueviastd::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 scatteredstd::process::exit(1)calls
which bypassed normal cleanup.
0.3.1
0.3.0
New
-
Preserve comments and formatting during mutations. [Valentin Lab]
set-value,del, andapplynow 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