Add TSV to machine-readable formats (#467)

...so no ansi formatting (colors) is emitted in that format (eg `tea labels -o tsv`)

Co-authored-by: Norwin <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/467
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
Norwin 2022-03-13 12:00:21 +08:00 committed by Lunny Xiao
parent 637e3f0666
commit d8f4273ed0
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ func outputyaml(headers []string, values [][]string) {
func isMachineReadable(outputFormat string) bool { func isMachineReadable(outputFormat string) bool {
switch outputFormat { switch outputFormat {
case "yml", "yaml", "csv": case "yml", "yaml", "csv", "tsv":
return true return true
} }
return false return false