mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-08 22:23:15 +00:00
add create and get CLI commands for backup locations
Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
|
||||
"github.com/heptio/ark/pkg/client"
|
||||
"github.com/heptio/ark/pkg/cmd/cli/backup"
|
||||
"github.com/heptio/ark/pkg/cmd/cli/backuplocation"
|
||||
"github.com/heptio/ark/pkg/cmd/cli/restore"
|
||||
"github.com/heptio/ark/pkg/cmd/cli/schedule"
|
||||
)
|
||||
@@ -41,10 +42,14 @@ func NewCommand(f client.Factory) *cobra.Command {
|
||||
restoreCommand := restore.NewGetCommand(f, "restores")
|
||||
restoreCommand.Aliases = []string{"restore"}
|
||||
|
||||
backupLocationCommand := backuplocation.NewGetCommand(f, "backup-locations")
|
||||
backupLocationCommand.Aliases = []string{"backup-location"}
|
||||
|
||||
c.AddCommand(
|
||||
backupCommand,
|
||||
scheduleCommand,
|
||||
restoreCommand,
|
||||
backupLocationCommand,
|
||||
)
|
||||
|
||||
return c
|
||||
|
||||
Reference in New Issue
Block a user