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