fix(cli/delete): prompt for confirmation after workspace is found (#8579)

This commit is contained in:
Ammar Bandukwala
2023-08-05 11:25:37 -05:00
committed by GitHub
parent eddaa7781d
commit 81752d1b84
3 changed files with 18 additions and 11 deletions
+4
View File
@@ -48,6 +48,10 @@ type Workspace struct {
Health WorkspaceHealth `json:"health"`
}
func (w Workspace) FullName() string {
return fmt.Sprintf("%s/%s", w.OwnerName, w.Name)
}
type WorkspaceHealth struct {
Healthy bool `json:"healthy" example:"false"` // Healthy is true if the workspace is healthy.
FailingAgents []uuid.UUID `json:"failing_agents" format:"uuid"` // FailingAgents lists the IDs of the agents that are failing, if any.