add create and get CLI commands for backup locations

Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
Steve Kriss
2018-08-09 15:08:50 -07:00
parent adbcd3703b
commit 06b5af449f
16 changed files with 530 additions and 0 deletions

View File

@@ -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