Skip to content

Commit

Permalink
chore(tem): document ListDomainsRequest fields (#3791)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Apr 25, 2024
1 parent fee885b commit 65f0edd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cmd/scw/testdata/test-all-usage-tem-domain-list-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ USAGE:
scw tem domain list [arg=value ...]

ARGS:
[project-id]
[status.{index}] (unknown | checked | unchecked | invalid | locked | revoked | pending)
[name]
[organization-id]
[project-id] (Optional) ID of the Project in which to list the domains
[status.{index}] (Optional) List domains under specific statuses (unknown | checked | unchecked | invalid | locked | revoked | pending)
[name] (Optional) Names of the domains to list
[organization-id] (Optional) ID of the Organization in which to list the domains
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)

FLAGS:
Expand Down
8 changes: 4 additions & 4 deletions docs/commands/tem.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ scw tem domain list [arg=value ...]

| Name | | Description |
|------|---|-------------|
| project-id | | |
| status.{index} | One of: `unknown`, `checked`, `unchecked`, `invalid`, `locked`, `revoked`, `pending` | |
| name | | |
| organization-id | | |
| project-id | | (Optional) ID of the Project in which to list the domains |
| status.{index} | One of: `unknown`, `checked`, `unchecked`, `invalid`, `locked`, `revoked`, `pending` | (Optional) List domains under specific statuses |
| name | | (Optional) Names of the domains to list |
| organization-id | | (Optional) ID of the Organization in which to list the domains |
| region | Default: `fr-par`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |


Expand Down
4 changes: 4 additions & 0 deletions internal/namespaces/tem/v1alpha1/tem_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,25 +528,29 @@ func temDomainList() *core.Command {
ArgSpecs: core.ArgSpecs{
{
Name: "project-id",
Short: `(Optional) ID of the Project in which to list the domains`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "status.{index}",
Short: `(Optional) List domains under specific statuses`,
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"unknown", "checked", "unchecked", "invalid", "locked", "revoked", "pending"},
},
{
Name: "name",
Short: `(Optional) Names of the domains to list`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "organization-id",
Short: `(Optional) ID of the Organization in which to list the domains`,
Required: false,
Deprecated: false,
Positional: false,
Expand Down

0 comments on commit 65f0edd

Please sign in to comment.