Added csv separator flag #1950

This commit is contained in:
Mike Farah
2024-02-17 19:11:41 +11:00
parent 42439b7d00
commit 9a8151d316
7 changed files with 89 additions and 12 deletions
+2 -2
View File
@@ -16,9 +16,9 @@ func configureEncoder(format PrinterOutputFormat, indent int) Encoder {
case PropsOutputFormat:
return NewPropertiesEncoder(true)
case CSVOutputFormat:
return NewCsvEncoder(',')
return NewCsvEncoder(ConfiguredCsvPreferences)
case TSVOutputFormat:
return NewCsvEncoder('\t')
return NewCsvEncoder(ConfiguredTsvPreferences)
case YamlOutputFormat:
return NewYamlEncoder(indent, false, ConfiguredYamlPreferences)
case XMLOutputFormat: