mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 06:24:18 +02:00
add index template completion, index pattern filter and name filter
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user