Skip to content

Commit

Permalink
Change subcommand restic to repo
Browse files Browse the repository at this point in the history
Signed-off-by: allenxu404 <[email protected]>
  • Loading branch information
allenxu404 committed Oct 13, 2022
1 parent c0430b8 commit e94cc95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 43 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions pkg/cmd/cli/restic/repo/repo.go → pkg/cmd/cli/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"github.com/vmware-tanzu/velero/pkg/client"
)

func NewRepositoryCommand(f client.Factory) *cobra.Command {
func NewCommand(f client.Factory) *cobra.Command {
c := &cobra.Command{
Use: "repo",
Short: "Work with restic repositories",
Long: "Work with restic repositories",
Short: "Work with repositories",
Long: "Work with repositories",
}

c.AddCommand(
Expand Down
38 changes: 0 additions & 38 deletions pkg/cmd/cli/restic/restic.go

This file was deleted.

4 changes: 2 additions & 2 deletions pkg/cmd/velero/velero.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
"github.com/vmware-tanzu/velero/pkg/cmd/cli/get"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/install"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/plugin"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/restic"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/repo"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/restore"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/schedule"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/snapshotlocation"
Expand Down Expand Up @@ -117,7 +117,7 @@ operations can also be performed as 'velero backup get' and 'velero schedule cre
delete.NewCommand(f),
cliclient.NewCommand(),
completion.NewCommand(),
restic.NewCommand(f),
repo.NewCommand(f),
bug.NewCommand(),
backuplocation.NewCommand(f),
snapshotlocation.NewCommand(f),
Expand Down

0 comments on commit e94cc95

Please sign in to comment.