fix(enterprise/cli): add ID to default columns in licenses list output (#11823)

This commit is contained in:
Cian Johnston 2024-01-26 09:55:16 +00:00 committed by GitHub
parent 29707099d7
commit fdf9f03097
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -18,10 +18,10 @@ coder licenses list [flags]
### -c, --column
| | |
| ------- | ------------------------------------------------- |
| Type | <code>string-array</code> |
| Default | <code>UUID,Expires At,Uploaded At,Features</code> |
| | |
| ------- | ---------------------------------------------------- |
| Type | <code>string-array</code> |
| Default | <code>ID,UUID,Expires At,Uploaded At,Features</code> |
Columns to display in table output. Available columns: id, uuid, uploaded at, features, expires at, trial.

View File

@ -150,7 +150,7 @@ func (r *RootCmd) licensesList() *clibase.Cmd {
formatter := cliui.NewOutputFormatter(
cliui.ChangeFormatterData(
cliui.TableFormat([]tableLicense{}, []string{"UUID", "Expires At", "Uploaded At", "Features"}),
cliui.TableFormat([]tableLicense{}, []string{"ID", "UUID", "Expires At", "Uploaded At", "Features"}),
func(data any) (any, error) {
list, ok := data.([]codersdk.License)
if !ok {

View File

@ -8,7 +8,7 @@ USAGE:
Aliases: ls
OPTIONS:
-c, --column string-array (default: UUID,Expires At,Uploaded At,Features)
-c, --column string-array (default: ID,UUID,Expires At,Uploaded At,Features)
Columns to display in table output. Available columns: id, uuid,
uploaded at, features, expires at, trial.