Added missing flow style

This commit is contained in:
Mike Farah 2020-06-11 09:58:10 +10:00
parent 71f5f76213
commit e90b00957b
2 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,8 @@ func (v *valueParser) Parse(argument string, customTag string, customStyle strin
style = yaml.LiteralStyle
} else if customStyle == "folded" {
style = yaml.FoldedStyle
} else if customStyle == "flow" {
style = yaml.FlowStyle
} else if customStyle != "" {
log.Error("Unknown style %v, ignoring", customStyle)
}

View File

@ -16,6 +16,7 @@ var parseStyleTests = []struct {
{"double", yaml.DoubleQuotedStyle},
{"single", yaml.SingleQuotedStyle},
{"folded", yaml.FoldedStyle},
{"flow", yaml.FlowStyle},
{"literal", yaml.LiteralStyle},
}