Added --properties-array-brackets flag for properties encoder #1933

This commit is contained in:
Mike Farah
2024-02-20 11:39:56 +11:00
parent 2865022cf8
commit b24b484efc
7 changed files with 115 additions and 37 deletions
+2
View File
@@ -2,11 +2,13 @@ package yqlib
type PropertiesPreferences struct {
KeyValueSeparator string
UseArrayBrackets bool
}
func NewDefaultPropertiesPreferences() PropertiesPreferences {
return PropertiesPreferences{
KeyValueSeparator: " = ",
UseArrayBrackets: false,
}
}