mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 14:34:18 +02:00
streamline table api
This commit is contained in:
@@ -58,7 +58,7 @@ func ClusterList(conf *cfg.Config) error {
|
||||
|
||||
wg.Wait()
|
||||
|
||||
table := printer.NewTable(conf, 5, len(conf.Clusters))
|
||||
table := printer.NewTable(conf).WithSize(5, len(conf.Clusters))
|
||||
table.Addheaders("cluster", "uri", "reachable", "current", "error")
|
||||
|
||||
idx := 0
|
||||
@@ -212,7 +212,7 @@ func ClusterStatus(conf *cfg.Config) error {
|
||||
}
|
||||
}
|
||||
|
||||
table := printer.NewTable(conf, 2, 7)
|
||||
table := printer.NewTable(conf).WithSize(2, 7)
|
||||
table.Addheaders(conf.DefaultCluster.Name, "status")
|
||||
|
||||
table.Entries = [][]any{
|
||||
|
||||
Reference in New Issue
Block a user