add index template completion, index pattern filter and name filter (#95)

This commit is contained in:
T. von Dein
2026-07-15 14:52:30 +02:00
parent 2f13e08536
commit 55a1005857
4 changed files with 122 additions and 11 deletions

View File

@@ -34,6 +34,7 @@ const (
Cilm
Cnode
Cclustersettings
Cindextemplate
)
func complete(conf *cfg.Config, cmd *cli.Command, what int) {
@@ -65,6 +66,8 @@ func complete(conf *cfg.Config, cmd *cli.Command, what int) {
list, err = es.NodeNames(conf)
case Cclustersettings:
list, err = es.ClusterSettingsNames(conf)
case Cindextemplate:
list, err = es.IndexTemplateNames(conf)
}
if err != nil {