Skip to content

Commit f487fe2

Browse files
committed
modify option
1 parent 01fd9e9 commit f487fe2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/cli/generate.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ $ tentez generate-config tfplanjson -f ./tfplan.json -o tentez.yaml`,
7272
}
7373

7474
var b bytes.Buffer
75-
yamlEnc := yaml.NewEncoder(&b)
76-
yamlEnc.SetIndent(2)
75+
yamlEnc := yaml.NewEncoder(&b, yaml.Indent(2))
7776
if err := yamlEnc.Encode(configYaml); err != nil {
7877
return fmt.Errorf("cannot marshal config yaml: %w", err)
7978
}

0 commit comments

Comments
 (0)