Skip to content

Commit 303152f

Browse files
authored
feat(TEM): return/filter emails subject and add ToS when create a domain (#2868)
1 parent b319b7e commit 303152f

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

cmd/scw/testdata/test-all-usage-tem-domain-create-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ USAGE:
77

88
ARGS:
99
[project-id] Project ID to use. If none is passed the default project ID will be used
10-
[domain-name]
10+
[domain-name] Fully qualified domain dame
11+
[accept-tos] Accept the Scaleway Terms of Service
1112
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
1213

1314
FLAGS:

cmd/scw/testdata/test-all-usage-tem-email-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ARGS:
1414
[mail-from] Optional, list emails sent with this `mail_from` sender's address
1515
[mail-to] Optional, list emails sent with this `mail_to` recipient's address
1616
[statuses.{index}] Optional, list emails having any of this status (unknown | new | sending | sent | failed | canceled)
17+
[subject] Optional, list emails having this subject
1718
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
1819

1920
FLAGS:

docs/commands/tem.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ scw tem domain create [arg=value ...]
5757
| Name | | Description |
5858
|------|---|-------------|
5959
| project-id | | Project ID to use. If none is passed the default project ID will be used |
60-
| domain-name | | |
60+
| domain-name | | Fully qualified domain dame |
61+
| accept-tos | | Accept the Scaleway Terms of Service |
6162
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
6263

6364

@@ -252,6 +253,7 @@ scw tem email list [arg=value ...]
252253
| mail-from | | Optional, list emails sent with this `mail_from` sender's address |
253254
| mail-to | | Optional, list emails sent with this `mail_to` recipient's address |
254255
| statuses.{index} | One of: `unknown`, `new`, `sending`, `sent`, `failed`, `canceled` | Optional, list emails having any of this status |
256+
| subject | | Optional, list emails having this subject |
255257
| region | Default: `fr-par`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |
256258

257259

internal/namespaces/tem/v1alpha1/tem_cli.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,13 @@ func temEmailList() *core.Command {
286286
Positional: false,
287287
EnumValues: []string{"unknown", "new", "sending", "sent", "failed", "canceled"},
288288
},
289+
{
290+
Name: "subject",
291+
Short: `Optional, list emails having this subject`,
292+
Required: false,
293+
Deprecated: false,
294+
Positional: false,
295+
},
289296
core.RegionArgSpec(scw.RegionFrPar, scw.Region(core.AllLocalities)),
290297
},
291298
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
@@ -409,6 +416,14 @@ func temDomainCreate() *core.Command {
409416
core.ProjectIDArgSpec(),
410417
{
411418
Name: "domain-name",
419+
Short: `Fully qualified domain dame`,
420+
Required: false,
421+
Deprecated: false,
422+
Positional: false,
423+
},
424+
{
425+
Name: "accept-tos",
426+
Short: `Accept the Scaleway Terms of Service`,
412427
Required: false,
413428
Deprecated: false,
414429
Positional: false,

0 commit comments

Comments
 (0)