mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 06:34:18 +02:00
streamline table api (#101)
This commit is contained in:
@@ -36,8 +36,8 @@ func TaskList(conf *cfg.Config) error {
|
||||
|
||||
slog.Debug("res", "tasks", res)
|
||||
|
||||
table := printer.NewTable(conf, 6, len(res))
|
||||
table.Addheaders("task id", "action", "start time", "run time", "node", "type")
|
||||
table := printer.NewTable(conf).WithSize(6, len(res)).
|
||||
WithHeaders("task id", "action", "start time", "run time", "node", "type")
|
||||
|
||||
for idx, task := range res {
|
||||
var ts time.Time
|
||||
|
||||
Reference in New Issue
Block a user