add ilm management support (#43)

This commit is contained in:
T. von Dein
2026-06-22 13:52:02 +02:00
parent 802217158c
commit 9b5ba0775b
9 changed files with 700 additions and 1 deletions

View File

@@ -197,3 +197,24 @@ func DatastreamRollover(conf *cfg.Config) *cli.Command {
},
}
}
func DatastreamIlm(conf *cfg.Config) *cli.Command {
return &cli.Command{
Name: "ilm",
Usage: "show ilm status",
UsageText: "ds ilm <name>",
ShellComplete: func(ctx context.Context, cmd *cli.Command) {
complete(cmd, Cdatastream)
},
Action: func(ctx context.Context, cmd *cli.Command) error {
ds := cmd.Args().Get(0)
if ds == "" {
return errors.New("no ds name specified")
}
return es.IlmExplain(conf, ds)
},
}
}