From 4e7ddc98b881eb825cd3c43d13db1ef7350007d7 Mon Sep 17 00:00:00 2001 From: Nathan ter Bogt Date: Tue, 10 Nov 2026 12:41:30 +1300 Subject: [PATCH] MySQL restore command has invalid arguments --- cmd/skpr/mysql/restore/create/command.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/skpr/mysql/restore/create/command.go b/cmd/skpr/mysql/restore/create/command.go index 45a9230..b1b0ffe 100644 --- a/cmd/skpr/mysql/restore/create/command.go +++ b/cmd/skpr/mysql/restore/create/command.go @@ -11,7 +11,7 @@ var ( cmdExample = ` # Create a Mysql restore for dev with BACKUP_ID and wait. - skpr mysql restore create dev BACKUP_ID --wait` + skpr mysql restore create dev BACKUP_ID default --wait` ) // NewCommand creates a new cobra.Command for 'create' sub command @@ -19,8 +19,8 @@ func NewCommand() *cobra.Command { command := v1create.Command{} cmd := &cobra.Command{ - Use: "create ", - Args: cobra.ExactArgs(2), + Use: "create ", + Args: cobra.ExactArgs(3), DisableFlagsInUseLine: true, Short: "Create a MySQL restore", Long: cmdLong, @@ -28,6 +28,7 @@ func NewCommand() *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { command.Environment = args[0] command.Backup = args[1] + command.DatabaseName = args[2] return command.Run(cmd.Context()) }, }