From 0902b4478084288f0c2ac9360a614a4c8af5faea Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 8 Jul 2026 10:20:02 +0200 Subject: [PATCH] always show actions --- pkg/cfg/config.go | 3 ++- pkg/es/cluster.go | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/cfg/config.go b/pkg/cfg/config.go index a1588be..628c92a 100644 --- a/pkg/cfg/config.go +++ b/pkg/cfg/config.go @@ -82,8 +82,9 @@ type Config struct { SortBy string // sort: -k Ascending bool // sort: -a + All bool // doc + node ls: -a Exclude string // cluster compare: -e (regexp) - All, Verbose bool // cluster status: -a -v + Verbose bool // cluster status: -v Persistent, Transient, Default bool // cluster settings set: -p -t -D Force bool // ccr follower renew: -f diff --git a/pkg/es/cluster.go b/pkg/es/cluster.go index c0960e7..a7e2988 100644 --- a/pkg/es/cluster.go +++ b/pkg/es/cluster.go @@ -239,6 +239,10 @@ func ClusterStatus(conf *cfg.Config) error { for resource, items := range diag.AffectedResources { table.Entries = append(table.Entries, []any{" -> affected " + resource, strings.Join(items, ",")}) } + + if diag.Action != "" { + table.AddRow(" -> suggested action to fix", diag.Action) + } } } }