mirror of https://github.com/coder/coder.git
fix(enterprise/cli): add ID to default columns in licenses list output (#11823)
This commit is contained in:
parent
29707099d7
commit
fdf9f03097
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue