Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change subcommand velero restic to velero repo #5446

Merged
merged 1 commit into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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