mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 10:04:18 +02:00
add settings reference to usage
This commit is contained in:
@@ -26,6 +26,10 @@ import (
|
|||||||
"github.com/urfave/cli/v3"
|
"github.com/urfave/cli/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
SETTINGS = `https://www.elastic.co/docs/reference/elasticsearch/configuration-reference`
|
||||||
|
)
|
||||||
|
|
||||||
func Cluster(conf *cfg.Config) *cli.Command {
|
func Cluster(conf *cfg.Config) *cli.Command {
|
||||||
return &cli.Command{
|
return &cli.Command{
|
||||||
Name: "cluster",
|
Name: "cluster",
|
||||||
@@ -176,7 +180,7 @@ func ClusterSettingsSet(conf *cfg.Config) *cli.Command {
|
|||||||
Name: "set",
|
Name: "set",
|
||||||
Usage: "set|update cluster settings",
|
Usage: "set|update cluster settings",
|
||||||
Aliases: []string{"set", "update"},
|
Aliases: []string{"set", "update"},
|
||||||
UsageText: "set [options] setting:value [setting:value ...]",
|
UsageText: "set [options] setting:value [setting:value ...]\n\nReference: " + SETTINGS,
|
||||||
|
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
|
|||||||
Reference in New Issue
Block a user