Rename command

This commit is contained in:
Benedikt Kulmann
2020-10-24 06:15:34 +02:00
parent 337a114d10
commit 0f03d8c52c
2 changed files with 4 additions and 4 deletions

View File

@@ -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"

View File

@@ -49,7 +49,7 @@ func Execute() error {
InspectAccount(cfg),
RemoveAccount(cfg),
PrintVersion(cfg),
DeleteIndex(cfg),
RebuildIndex(cfg),
},
}