Skip to content

Commit

Permalink
changed: fixed yaml output (removed last newline)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharo-jef committed Jun 16, 2022
1 parent 913b241 commit de0cba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func query(csvReader *csv.Reader, compact bool, header []string, outputFormat st
} else if StringContains([]string{"csv", "c"}, outputFormat) {
printJsonAsCsv(js)
} else if StringContains([]string{"yaml", "y"}, outputFormat) {
fmt.Println(jsonToYaml(js))
fmt.Print(jsonToYaml(js))
}
}

Expand Down

0 comments on commit de0cba4

Please sign in to comment.