Skip to content

Commit fdf9f03

Browse files
authored
fix(enterprise/cli): add ID to default columns in licenses list output (#11823)
1 parent 2970709 commit fdf9f03

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/cli/licenses_list.md

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enterprise/cli/licenses.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (r *RootCmd) licensesList() *clibase.Cmd {
150150

151151
formatter := cliui.NewOutputFormatter(
152152
cliui.ChangeFormatterData(
153-
cliui.TableFormat([]tableLicense{}, []string{"UUID", "Expires At", "Uploaded At", "Features"}),
153+
cliui.TableFormat([]tableLicense{}, []string{"ID", "UUID", "Expires At", "Uploaded At", "Features"}),
154154
func(data any) (any, error) {
155155
list, ok := data.([]codersdk.License)
156156
if !ok {

enterprise/cli/testdata/coder_licenses_list_--help.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
Aliases: ls
99

1010
OPTIONS:
11-
-c, --column string-array (default: UUID,Expires At,Uploaded At,Features)
11+
-c, --column string-array (default: ID,UUID,Expires At,Uploaded At,Features)
1212
Columns to display in table output. Available columns: id, uuid,
1313
uploaded at, features, expires at, trial.
1414

0 commit comments

Comments
 (0)