Skip to content

Commit

Permalink
Apps: Display "phase" for apps get-deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
danaelhe committed Dec 7, 2023
1 parent d7e4a2e commit e0f95e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ func TestRunAppsCreateDeployment(t *testing.T) {
SourceCommitHash: "commit",
}},
Cause: "Manual",
Phase: godo.DeploymentPhase_PendingDeploy,
Progress: &godo.DeploymentProgress{
PendingSteps: 1,
RunningSteps: 0,
Expand Down Expand Up @@ -351,6 +352,7 @@ func TestRunAppsGetDeployment(t *testing.T) {
SourceCommitHash: "commit",
}},
Cause: "Manual",
Phase: godo.DeploymentPhase_PendingDeploy,
Progress: &godo.DeploymentProgress{
PendingSteps: 1,
RunningSteps: 0,
Expand Down Expand Up @@ -388,6 +390,7 @@ func TestRunAppsListDeployments(t *testing.T) {
SourceCommitHash: "commit",
}},
Cause: "Manual",
Phase: godo.DeploymentPhase_PendingDeploy,
Progress: &godo.DeploymentProgress{
PendingSteps: 1,
RunningSteps: 0,
Expand Down
3 changes: 3 additions & 0 deletions commands/displayers/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (d Deployments) Cols() []string {
"ID",
"Cause",
"Progress",
"Phase",
"Created",
"Updated",
}
Expand All @@ -93,6 +94,7 @@ func (d Deployments) ColMap() map[string]string {
"ID": "ID",
"Cause": "Cause",
"Progress": "Progress",
"Phase": "Phase",
"Created": "Created At",
"Updated": "Updated At",
}
Expand All @@ -115,6 +117,7 @@ func (d Deployments) KV() []map[string]any {
"ID": deployment.ID,
"Cause": deployment.Cause,
"Progress": progress,
"Phase": deployment.Phase,
"Created": deployment.CreatedAt,
"Updated": deployment.UpdatedAt,
}
Expand Down

0 comments on commit e0f95e6

Please sign in to comment.