Skip to content

Commit

Permalink
fix(cli): add valid environmenttokens and invites resource name plural (
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc authored May 16, 2024
1 parent f07ac86 commit 3622674
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/cmd/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ var (

envTokensClient = resourcemanager.NewClient(
httpClient, cliLogger,
"token", "tokens",
"token", "environmenttokens",
resourcemanager.WithTableConfig(resourcemanager.TableConfig{
Cells: []resourcemanager.TableCellConfig{
{Header: "ID", Path: "spec.id"},
{Header: "NAME", Path: "spec.name"},
{Header: "ROLE", Path: "spec.role"},
{Header: "REVOKED", Path: "spec.isRevoked"},
{Header: "ISSUED AT", Path: "spec.issuedAt"},
{Header: "EXPIRES AT", Path: "spec.expiresAt"},
},
Expand All @@ -72,7 +73,7 @@ var (

orgInvitesClient = resourcemanager.NewClient(
httpClient, cliLogger,
"organizationinvite", "organizationinvites",
"organizationinvite", "invites",
resourcemanager.WithTableConfig(resourcemanager.TableConfig{
Cells: []resourcemanager.TableCellConfig{
{Header: "ID", Path: "spec.id"},
Expand Down

0 comments on commit 3622674

Please sign in to comment.