mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-24 19:41:36 +01:00
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:
parent
637e3f0666
commit
d8f4273ed0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user