streamline table api

This commit is contained in:
2026-08-07 22:59:33 +02:00
parent 59331fc721
commit ce5d7f51c6
25 changed files with 73 additions and 74 deletions

View File

@@ -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{