mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 09:02:53 +00:00
Make seq indent configurable and add retain seq indent functionality
This commit is contained in:
@@ -19,6 +19,16 @@ const DefaultSequenceStyle = CompactSequenceStyle
|
||||
var sequenceIndentationStyle = DefaultSequenceStyle
|
||||
var indent = DefaultIndent
|
||||
|
||||
// SetSequenceIndentationStyle sets the sequenceIndentationStyle variable
|
||||
func SetSequenceIndentationStyle(style string) {
|
||||
sequenceIndentationStyle = style
|
||||
}
|
||||
|
||||
// SequenceIndentationStyle returns the value of sequenceIndentationStyle
|
||||
func SequenceIndentationStyle() string {
|
||||
return sequenceIndentationStyle
|
||||
}
|
||||
|
||||
// Expose the yaml.v3 functions so this package can be used as a replacement
|
||||
|
||||
type Decoder = yaml.Decoder
|
||||
|
||||
Reference in New Issue
Block a user