Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be55dcd

Browse files
committed
feat(cli): show workspace health in list
Ref #6461
1 parent 616e1d7 commit be55dcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/list.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type workspaceListRow struct {
2424
WorkspaceName string `json:"-" table:"workspace,default_sort"`
2525
Template string `json:"-" table:"template"`
2626
Status string `json:"-" table:"status"`
27+
Healthy bool `json:"-" table:"healthy"`
2728
LastBuilt string `json:"-" table:"last built"`
2829
Outdated bool `json:"-" table:"outdated"`
2930
StartsAt string `json:"-" table:"starts at"`
@@ -57,6 +58,7 @@ func workspaceListRowFromWorkspace(now time.Time, usersByID map[uuid.UUID]coders
5758
WorkspaceName: user.Username + "/" + workspace.Name,
5859
Template: workspace.TemplateName,
5960
Status: status,
61+
Healthy: workspace.Health.Healthy,
6062
LastBuilt: durationDisplay(lastBuilt),
6163
Outdated: workspace.Outdated,
6264
StartsAt: autostartDisplay,

0 commit comments

Comments
 (0)