always show actions

This commit is contained in:
2026-07-08 10:20:02 +02:00
parent 5e569b91fc
commit 0902b44780
2 changed files with 6 additions and 1 deletions

View File

@@ -82,8 +82,9 @@ type Config struct {
SortBy string // sort: -k SortBy string // sort: -k
Ascending bool // sort: -a Ascending bool // sort: -a
All bool // doc + node ls: -a
Exclude string // cluster compare: -e (regexp) 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 Persistent, Transient, Default bool // cluster settings set: -p -t -D
Force bool // ccr follower renew: -f Force bool // ccr follower renew: -f

View File

@@ -239,6 +239,10 @@ func ClusterStatus(conf *cfg.Config) error {
for resource, items := range diag.AffectedResources { for resource, items := range diag.AffectedResources {
table.Entries = append(table.Entries, []any{" -> affected " + resource, strings.Join(items, ",")}) table.Entries = append(table.Entries, []any{" -> affected " + resource, strings.Join(items, ",")})
} }
if diag.Action != "" {
table.AddRow(" -> suggested action to fix", diag.Action)
}
} }
} }
} }