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