From 004626003a86cde45814b25d3139369a5afcf38f Mon Sep 17 00:00:00 2001 From: OliverTrautvetter <66372584+OliverTrautvetter@users.noreply.github.com> Date: Wed, 7 Jan 2026 14:49:26 +0100 Subject: [PATCH] fix: include Dev Domain in workspace listing output --- cli/cmd/list_workspaces.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cli/cmd/list_workspaces.go b/cli/cmd/list_workspaces.go index 6fd78ad..679df0a 100644 --- a/cli/cmd/list_workspaces.go +++ b/cli/cmd/list_workspaces.go @@ -46,13 +46,17 @@ func (l *ListWorkspacesCmd) RunE(_ *cobra.Command, args []string) (err error) { } t := io.GetTableWriter() - t.AppendHeader(table.Row{"Team ID", "ID", "Name", "Repository"}) + t.AppendHeader(table.Row{"Team ID", "ID", "Name", "Repository", "Dev Domain"}) for _, w := range workspaces { gitUrl := "" - if w.GitUrl.Get() != nil { + if w.GitUrl.IsSet() && w.GitUrl.Get() != nil { gitUrl = *w.GitUrl.Get() } - t.AppendRow(table.Row{w.TeamId, w.Id, w.Name, gitUrl}) + devDomain := "" + if w.DevDomain != nil { + devDomain = *w.DevDomain + } + t.AppendRow(table.Row{w.TeamId, w.Id, w.Name, gitUrl, devDomain}) } t.Render()