Skip to content

CLI: show running devcontainers in coder show <workspace> output #16418

Closed
@johnstcn

Description

@johnstcn

Using the API endpoint provided in https://github.com/orgs/coder/projects/41/views/1?pane=issue&itemId=94819818, add support to the coder show <workspace> command to show running devcontainers visible to an agent.

CLI mockup:

$ coder show my-workspace
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ RESOURCE                                 STATUS       HEALTH     VERSION                    ACCESS                                       │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ docker_container.workspace                                                                                                               │
│ └─ agt (linux, amd64)                    ⦿ connected  ✔ healthy  v2.18.3-devel+4d9dd0aa9   coder ssh my-workspace.agt                    │
│    └─ prescient_dormouse (devcontainer)  ⦿ connected  ✔ healthy  -                         coder ssh my-workspace.agt.prescient_dormouse │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ docker_image.dogfood                                                                                                                     │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ docker_volume.home_volume                                                                                                                │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Metadata

Metadata

Assignees

Labels

cliArea: CLI

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions