fix: tables align output again

Closes coop-cloud/go-abra#16.
This commit is contained in:
decentral1se 2021-09-07 08:41:03 +02:00
parent a06870f5cb
commit dcf1a90c31
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 0 additions and 14 deletions

View File

@ -34,19 +34,5 @@ func HumanDuration(timestamp int64) string {
func CreateTable(columns []string) *tablewriter.Table {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader(columns)
// Settings to create very bare tab padded table
table.SetAutoWrapText(false)
table.SetAutoFormatHeaders(true)
table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
table.SetAlignment(tablewriter.ALIGN_LEFT)
table.SetCenterSeparator("")
table.SetColumnSeparator("")
table.SetRowSeparator("")
table.SetHeaderLine(false)
table.SetBorder(false)
table.SetTablePadding("\t") // pad with tabs
table.SetNoWhiteSpace(true)
table.SetColWidth(1)
return table
}