mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 12:50:21 -06:00
Rename command
This commit is contained in:
@@ -11,11 +11,11 @@ import (
|
||||
index "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
)
|
||||
|
||||
// DeleteIndex rebuilds the entire configured index.
|
||||
func DeleteIndex(cdf *config.Config) *cli.Command {
|
||||
// RebuildIndex rebuilds the entire configured index.
|
||||
func RebuildIndex(cdf *config.Config) *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "rebuildIndex",
|
||||
Usage: "Rebuilds the service's index",
|
||||
Usage: "Rebuilds the service's index, i.e. deleting and then re-adding all existing documents",
|
||||
Aliases: []string{"rebuild", "ri"},
|
||||
Action: func(ctx *cli.Context) error {
|
||||
idxSvcID := "com.owncloud.api.accounts"
|
||||
|
||||
@@ -49,7 +49,7 @@ func Execute() error {
|
||||
InspectAccount(cfg),
|
||||
RemoveAccount(cfg),
|
||||
PrintVersion(cfg),
|
||||
DeleteIndex(cfg),
|
||||
RebuildIndex(cfg),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user