mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 14:24:20 +02:00
further table streamlining: work with new table api everywhere
This commit is contained in:
@@ -64,14 +64,13 @@ func SearchQL(conf *cfg.Config, querystring string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
table := printer.NewTable(conf).WithSize(len(qlResult.Columns), len(qlResult.Values))
|
||||
|
||||
headers := make([]string, len(qlResult.Columns))
|
||||
for idx, col := range qlResult.Columns {
|
||||
headers[idx] = col.Name
|
||||
}
|
||||
|
||||
table.Addheaders(headers...)
|
||||
table := printer.NewTable(conf).WithSize(len(qlResult.Columns), len(qlResult.Values)).
|
||||
WithHeaders(headers...)
|
||||
|
||||
table.Entries = qlResult.Values
|
||||
|
||||
|
||||
Reference in New Issue
Block a user