From e3ca3d6860668e16ef9041667902ca7028f00409 Mon Sep 17 00:00:00 2001 From: Jeff Haynie Date: Wed, 18 Jun 2025 19:19:11 -0500 Subject: [PATCH] Split up the upload vs deploy status messages --- cmd/cloud.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/cloud.go b/cmd/cloud.go index 04dc5610..b586778e 100644 --- a/cmd/cloud.go +++ b/cmd/cloud.go @@ -537,7 +537,7 @@ Examples: started := time.Now() var webhookToken string - action := func() { + uploadAction := func() { url := util.TransformUrl(startResponse.Data.Url) // send the zip file to the upload endpoint provided logger.Trace("uploading to %s", url) @@ -573,7 +573,11 @@ Examples: } resp.Body.Close() logger.Debug("deployment uploaded %d bytes in %v", fi.Size(), time.Since(started)) + } + + tui.ShowSpinner("Uploading ...", uploadAction) + deployAction := func() { // tell the api that we've completed the upload for the deployment if err := updateDeploymentStatusCompleted(logger, apiUrl, token, startResponse.Data.DeploymentId); err != nil { errsystem.New(errsystem.ErrApiRequest, err, @@ -590,7 +594,7 @@ Examples: } } - tui.ShowSpinner("Uploading ...", action) + tui.ShowSpinner("Deploying ...", deployAction) format, _ := cmd.Flags().GetString("format") if format == "json" {