add index ls command, add table and color support

This commit is contained in:
2026-04-21 15:05:15 +02:00
parent 2b21fa0e7e
commit a7d979ca38
12 changed files with 344 additions and 18 deletions

View File

@@ -26,10 +26,11 @@ import (
"github.com/urfave/cli/v3"
)
func Health(conf *cfg.Config) *cli.Command {
func Status(conf *cfg.Config) *cli.Command {
return &cli.Command{
Name: "health",
Usage: "show ES health",
Name: "status",
Usage: "show ES status",
Aliases: []string{"s"},
Action: func(ctx context.Context, cmd *cli.Command) error {
if err := es.Health(conf); err != nil {
return err