Skip to content

Commit

Permalink
Merge pull request #5446 from allenxu404/i5098
Browse files Browse the repository at this point in the history
Change subcommand `velero restic` to `velero repo`
  • Loading branch information
Lyndon-Li authored Oct 17, 2022
2 parents d658f65 + 154f555 commit ad7e3ab
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 44 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/5446-allenxu404
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change subcommand `velero restic repo` to `velero repo`
2 changes: 1 addition & 1 deletion pkg/cmd/cli/restic/repo/get.go → pkg/cmd/cli/repo/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NewGetCommand(f client.Factory, use string) *cobra.Command {

c := &cobra.Command{
Use: use,
Short: "Get restic repositories",
Short: "Get repositories",
Run: func(c *cobra.Command, args []string) {
err := output.ValidateFlags(c)
cmd.CheckError(err)
Expand Down
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 ad7e3ab

Please sign in to comment.