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

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enterprise/cli/licenses.go

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy