mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 04:54:18 +02:00
Additions and enhancements (#14)
- add interactive API repl - enhance cluster status output (use -v) - add more ccr commands - refactoring
This commit is contained in:
12
cmd/index.go
12
cmd/index.go
@@ -37,6 +37,7 @@ func Index(conf *cfg.Config) *cli.Command {
|
||||
IndexShow(conf),
|
||||
IndexCreate(conf),
|
||||
IndexDelete(conf),
|
||||
IndexClose(conf),
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -156,3 +157,14 @@ func IndexDelete(conf *cfg.Config) *cli.Command {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func IndexClose(conf *cfg.Config) *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "close",
|
||||
Usage: "close an index",
|
||||
|
||||
Action: func(ctx context.Context, cmd *cli.Command) error {
|
||||
return es.IndexClose(conf, cmd.Args().Get(0))
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user