From c92f10fb5d4f6ba88f3ba89d709f6838fd26de9e Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 27 May 2026 09:25:55 +0200 Subject: [PATCH] show cluster color status directly to make it clearer --- pkg/es/cluster.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/es/cluster.go b/pkg/es/cluster.go index bff768b..3a97cfa 100644 --- a/pkg/es/cluster.go +++ b/pkg/es/cluster.go @@ -163,11 +163,12 @@ func ClusterStatus(conf *cfg.Config) error { ) } - table := printer.NewTable(conf, 2, 5) + table := printer.NewTable(conf, 2, 7) table.Addheaders(cluster, "status") table.Entries = [][]string{ - {"Cluster Name", printer.Colorize(conf, clusterhealth.Status.Name, clusterhealth.ClusterName)}, + {"Cluster Name", clusterhealth.ClusterName}, + {"ES Status", printer.Colorize(conf, clusterhealth.Status.Name, clusterhealth.Status.Name)}, {"ES Version", info.Version.Int}, {"Active Shards", fmt.Sprintf("%d", clusterhealth.ActiveShards)}, {"Active Primary Shards", fmt.Sprintf("%d", clusterhealth.ActivePrimaryShards)},