Skip to content
Draft
Changes from all commits
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
10 changes: 7 additions & 3 deletions cli/cmd/list_workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@
}

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 {

Check failure on line 56 in cli/cmd/list_workspaces.go

View workflow job for this annotation

GitHub Actions / lint

w.DevDomain undefined (type api.Workspace has no field or method DevDomain)

Check failure on line 56 in cli/cmd/list_workspaces.go

View workflow job for this annotation

GitHub Actions / update-files

w.DevDomain undefined (type api.Workspace has no field or method DevDomain)
devDomain = *w.DevDomain

Check failure on line 57 in cli/cmd/list_workspaces.go

View workflow job for this annotation

GitHub Actions / lint

w.DevDomain undefined (type api.Workspace has no field or method DevDomain) (typecheck)

Check failure on line 57 in cli/cmd/list_workspaces.go

View workflow job for this annotation

GitHub Actions / update-files

w.DevDomain undefined (type api.Workspace has no field or method DevDomain)
}
t.AppendRow(table.Row{w.TeamId, w.Id, w.Name, gitUrl, devDomain})
}
t.Render()

Expand Down
Loading