@@ -276,8 +276,6 @@ func waitForDeployment(client *api.APIClient, projectID string, deployment *api.
276276 defer ticker .Stop ()
277277
278278 lastBuildLine := 0
279- headerPrinted := false
280-
281279 for {
282280 select {
283281 case <- timeout :
@@ -290,11 +288,6 @@ func waitForDeployment(client *api.APIClient, projectID string, deployment *api.
290288 continue // transient error, keep polling
291289 }
292290
293- if ! headerPrinted && d .VersionNumber > 0 {
294- fmt .Printf (" Building v%d...\n \n " , d .VersionNumber )
295- headerPrinted = true
296- }
297-
298291 // Stream new build log lines
299292 buildLogs , err := client .GetDeploymentBuildLogs (projectID , deployment .ID )
300293 if err == nil {
@@ -309,7 +302,7 @@ func waitForDeployment(client *api.APIClient, projectID string, deployment *api.
309302 switch d .Status {
310303 case "successful" , "running" , "active" , "deployed" :
311304 fmt .Println ()
312- pterm .Success .Printf ("Deployed (v%d) \n " , d . VersionNumber )
305+ pterm .Success .Println ("Deployed successfully" )
313306 fmt .Println ()
314307 if d .Extra .Endpoint != "" {
315308 url := d .Extra .Endpoint
@@ -324,7 +317,7 @@ func waitForDeployment(client *api.APIClient, projectID string, deployment *api.
324317 return nil
325318 case "failed" , "error" , "cancelled" :
326319 fmt .Println ()
327- pterm .Error .Printf ("Deployment failed (v%d) \n " , d . VersionNumber )
320+ pterm .Error .Println ("Deployment failed" )
328321 return fmt .Errorf ("deployment %s failed with status: %s" , d .ID , d .Status )
329322 }
330323 }
0 commit comments