Rename command
This commit is contained in:
@@ -11,11 +11,11 @@ import (
|
|||||||
index "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
index "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeleteIndex rebuilds the entire configured index.
|
// RebuildIndex rebuilds the entire configured index.
|
||||||
func DeleteIndex(cdf *config.Config) *cli.Command {
|
func RebuildIndex(cdf *config.Config) *cli.Command {
|
||||||
return &cli.Command{
|
return &cli.Command{
|
||||||
Name: "rebuildIndex",
|
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"},
|
Aliases: []string{"rebuild", "ri"},
|
||||||
Action: func(ctx *cli.Context) error {
|
Action: func(ctx *cli.Context) error {
|
||||||
idxSvcID := "com.owncloud.api.accounts"
|
idxSvcID := "com.owncloud.api.accounts"
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ func Execute() error {
|
|||||||
InspectAccount(cfg),
|
InspectAccount(cfg),
|
||||||
RemoveAccount(cfg),
|
RemoveAccount(cfg),
|
||||||
PrintVersion(cfg),
|
PrintVersion(cfg),
|
||||||
DeleteIndex(cfg),
|
RebuildIndex(cfg),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user