mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 13:24:19 +02:00
add index ls command, add table and color support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user