Skip to content

Commit 8a4cad8

Browse files
chore: removed unwanted version printing
1 parent cc49650 commit 8a4cad8

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

cmd/deploy/deploy.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

cmd/deployments/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ func newDeploymentsListCommand() *cli.Command {
4040
}
4141

4242
tableData := pterm.TableData{
43-
{"ID", "Version", "Status", "URL", "Created At"},
43+
{"ID", "Status", "URL", "Created At"},
4444
}
4545
for _, d := range deployments {
4646
tableData = append(tableData, []string{
4747
d.ID,
48-
fmt.Sprintf("v%d", d.VersionNumber),
4948
d.Status,
5049
d.Extra.Endpoint,
5150
d.CreatedAt.Format("2006-01-02 15:04:05"),

cmd/status/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func NewStatusCommand() *cli.Command {
147147
}
148148
for _, d := range deployments[:limit] {
149149
icon := deployStatusIcon(d.Status)
150-
fmt.Printf(" %s v%d %s %s\n", icon, d.VersionNumber, relativeTime(d.CreatedAt), d.Status)
150+
fmt.Printf(" %s %s %s\n", icon, relativeTime(d.CreatedAt), d.Status)
151151
}
152152
}
153153

0 commit comments

Comments
 (0)