From 37f498cd37a3bbcf89ad1deb2b5a7e81d866225a Mon Sep 17 00:00:00 2001 From: Nolan Brubaker Date: Thu, 4 Jan 2018 11:51:22 -0500 Subject: [PATCH] Clarify backup and restore creation messages When running `ark create`, a request is sent to the server, but the status is not immediately known. Inform the user that a request was sent and provide a way to get more information on it. Signed-off-by: Nolan Brubaker --- pkg/cmd/cli/backup/create.go | 3 ++- pkg/cmd/cli/restore/create.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/cli/backup/create.go b/pkg/cmd/cli/backup/create.go index e0fa10aff..67dfb2e33 100644 --- a/pkg/cmd/cli/backup/create.go +++ b/pkg/cmd/cli/backup/create.go @@ -143,6 +143,7 @@ func (o *CreateOptions) Run(c *cobra.Command, f client.Factory) error { return err } - fmt.Printf("Backup %q created successfully.\n", backup.Name) + fmt.Printf("Backup request %q submitted successfully.\n", backup.Name) + fmt.Printf("Run `ark backup describe %s` for more details.\n", backup.Name) return nil } diff --git a/pkg/cmd/cli/restore/create.go b/pkg/cmd/cli/restore/create.go index a1f0f345e..1bb18dd49 100644 --- a/pkg/cmd/cli/restore/create.go +++ b/pkg/cmd/cli/restore/create.go @@ -144,6 +144,7 @@ func (o *CreateOptions) Run(c *cobra.Command, f client.Factory) error { return err } - fmt.Printf("Restore %q created successfully.\n", restore.Name) + fmt.Printf("Restore request %q submitted successfully.\n", restore.Name) + fmt.Printf("Run `ark restore describe %s` for more details.\n", restore.Name) return nil }