Skip to content

Commit b8c7a1d

Browse files
update
1 parent 641db1e commit b8c7a1d

File tree

3 files changed

+600
-644
lines changed

3 files changed

+600
-644
lines changed

codefresh/internal/datautil/yaml.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const (
1515

1616
// Yq gets a value from a YAML string using yq
1717
func Yq(yamlString string, expression string, outputformat string) (string, error) {
18-
yqEncoder := yqlib.NewYamlEncoder(0, false, yqlib.NewDefaultYamlPreferences())
18+
yqEncoder := yqlib.NewYamlEncoder(yqlib.YamlPreferences{Indent: 0, ColorsEnabled: false})
1919

2020
if outputformat == YQ_OUTPUT_FORMAT_JSON {
21-
yqEncoder = yqlib.NewJSONEncoder(0, false, false)
21+
yqEncoder = yqlib.NewJSONEncoder(yqlib.JsonPreferences{Indent: 0, ColorsEnabled: false, UnwrapScalar: false})
2222
}
2323
yqDecoder := yqlib.NewYamlDecoder(yqlib.NewDefaultYamlPreferences())
2424
yqEvaluator := yqlib.NewStringEvaluator()

0 commit comments

Comments
 (0)