fix: dont wrap for table output
This commit is contained in:
parent
c0caf14d74
commit
ae0e7b8e4c
|
@ -39,6 +39,7 @@ func HumanDuration(timestamp int64) string {
|
||||||
// CreateTable prepares a table layout for output.
|
// CreateTable prepares a table layout for output.
|
||||||
func CreateTable(columns []string) *tablewriter.Table {
|
func CreateTable(columns []string) *tablewriter.Table {
|
||||||
table := tablewriter.NewWriter(os.Stdout)
|
table := tablewriter.NewWriter(os.Stdout)
|
||||||
|
table.SetAutoWrapText(false)
|
||||||
table.SetHeader(columns)
|
table.SetHeader(columns)
|
||||||
return table
|
return table
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue