add index template {ls,sh} (#33)

This commit is contained in:
T. von Dein
2026-06-15 15:18:21 +02:00
parent ec1ce56b2d
commit d0d1d69791
15 changed files with 875 additions and 100 deletions

View File

@@ -41,8 +41,11 @@ func Index(conf *cfg.Config) *cli.Command {
IndexClose(conf),
IndexAllocation(conf),
IndexModify(conf),
IndexAlias(conf),
IndexFields(conf),
// sub commands
IndexAlias(conf),
IndexTemplate(conf),
},
}
}
@@ -165,6 +168,7 @@ Valid field mapping types: integer, text, date, keyword`,
Usage: "number of replicas to create",
Destination: &conf.Replicas,
Aliases: []string{"r"},
Value: 1,
},
},
@@ -240,6 +244,7 @@ func IndexModify(conf *cfg.Config) *cli.Command {
Usage: "number of replicas",
Destination: &conf.Replicas,
Aliases: []string{"r"},
Value: 1,
},
},