mirror of
https://github.com/mikefarah/yq.git
synced 2025-02-26 09:42:29 +00:00

- improved comment handling - yaml decoder now responsible for leading content work around
20 lines
475 B
Go
20 lines
475 B
Go
package yqlib
|
|
|
|
type YamlPreferences struct {
|
|
LeadingContentPreProcessing bool
|
|
PrintDocSeparators bool
|
|
UnwrapScalar bool
|
|
EvaluateTogether bool
|
|
}
|
|
|
|
func NewDefaultYamlPreferences() YamlPreferences {
|
|
return YamlPreferences{
|
|
LeadingContentPreProcessing: true,
|
|
PrintDocSeparators: true,
|
|
UnwrapScalar: true,
|
|
EvaluateTogether: false,
|
|
}
|
|
}
|
|
|
|
var ConfiguredYamlPreferences = NewDefaultYamlPreferences()
|