From b70d2b1767a615e272c5293d7e1e3fc1fd80293b Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Mon, 12 Jun 2023 14:35:51 -0500 Subject: [PATCH] fix: correct the correct cli output for 'template version list --output=json' (#7984) * fix: correct 'template version list --output=json' cli cmd --- cli/templateversions.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cli/templateversions.go b/cli/templateversions.go index 2fdc43e240..ed7688d3f3 100644 --- a/cli/templateversions.go +++ b/cli/templateversions.go @@ -105,11 +105,12 @@ func templateVersionsToRows(activeVersionID uuid.UUID, templateVersions ...coder } rows[i] = templateVersionRow{ - Name: templateVersion.Name, - CreatedAt: templateVersion.CreatedAt, - CreatedBy: templateVersion.CreatedBy.Username, - Status: strings.Title(string(templateVersion.Job.Status)), - Active: activeStatus, + TemplateVersion: templateVersion, + Name: templateVersion.Name, + CreatedAt: templateVersion.CreatedAt, + CreatedBy: templateVersion.CreatedBy.Username, + Status: strings.Title(string(templateVersion.Job.Status)), + Active: activeStatus, } }