mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-07 02:48:27 +08:00
feat: add --ini-preserve-quotes flag for INI round-trip quote preservation (#2728)
Add INIPreferences.PreserveSurroundedQuote option that wires through to go-ini/ini's LoadOptions.PreserveSurroundedQuote. When enabled, existing surrounding quotes on INI values are preserved during decode/encode round-trips. Fixes #2456 Co-authored-by: toller892 <toller892@gmail.com>
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
package yqlib
|
||||
|
||||
func NewINIDecoder() Decoder {
|
||||
func NewINIDecoder(prefs INIPreferences) Decoder {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user