mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(enterprise/cli): add ID to default columns in licenses list output (#11823)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user