Skip to content

Commit 83e9e55

Browse files
Emyrkpull[bot]
authored andcommitted
fix: correct the correct cli output for 'template version list --output=json' (#7984)
* fix: correct 'template version list --output=json' cli cmd
1 parent 940f86e commit 83e9e55

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cli/templateversions.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,12 @@ func templateVersionsToRows(activeVersionID uuid.UUID, templateVersions ...coder
105105
}
106106

107107
rows[i] = templateVersionRow{
108-
Name: templateVersion.Name,
109-
CreatedAt: templateVersion.CreatedAt,
110-
CreatedBy: templateVersion.CreatedBy.Username,
111-
Status: strings.Title(string(templateVersion.Job.Status)),
112-
Active: activeStatus,
108+
TemplateVersion: templateVersion,
109+
Name: templateVersion.Name,
110+
CreatedAt: templateVersion.CreatedAt,
111+
CreatedBy: templateVersion.CreatedBy.Username,
112+
Status: strings.Title(string(templateVersion.Job.Status)),
113+
Active: activeStatus,
113114
}
114115
}
115116

0 commit comments

Comments
 (0)