Skip to content

feat(cli): add display of open ports in coder show #16464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! feat(cli): display open ports in coder show
  • Loading branch information
johnstcn committed Feb 10, 2025
commit 93b13c1184c7d44c2d8986775d9340eeb2d33b25
2 changes: 1 addition & 1 deletion cli/cliui/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func WorkspaceResources(writer io.Writer, resources []codersdk.WorkspaceResource
for index, agent := range resource.Agents {
tableWriter.AppendRow(renderAgentRow(agent, index, totalAgents, options))
if options.ListeningPorts != nil {
if lp, ok := options.ListeningPorts[agent.ID]; ok {
if lp, ok := options.ListeningPorts[agent.ID]; ok && len(lp.Ports) > 0 {
tableWriter.AppendRow(table.Row{
fmt.Sprintf(" %s─ %s", renderPipe(index, totalAgents), "Open Ports"),
})
Expand Down
Loading