Skip to content

Commit 7bce89d

Browse files
authored
feat(tem): deprecate accept tos on create domain (#4577)
1 parent 6bda621 commit 7bce89d

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ USAGE:
88
ARGS:
99
[project-id] Project ID to use. If none is passed the default project ID will be used
1010
[domain-name] Fully qualified domain dame
11-
[accept-tos] Accept Scaleway's Terms of Service
1211
[autoconfig] Activate auto-configuration of the domain's DNS zone
1312
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
1413

14+
DEPRECATED ARGS:
15+
[accept-tos] Deprecated. Accept Scaleway's Terms of Service
16+
1517
FLAGS:
1618
-h, --help help for create
1719

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARGS:
2121
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
2222

2323
DEPRECATED ARGS:
24-
[mail-to] List emails sent to this recipient's email address
24+
[mail-to] Deprecated. List emails sent to this recipient's email address
2525

2626
FLAGS:
2727
-h, --help help for list

docs/commands/tem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ scw tem domain create [arg=value ...]
146146
|------|---|-------------|
147147
| project-id | | Project ID to use. If none is passed the default project ID will be used |
148148
| domain-name | | Fully qualified domain dame |
149-
| accept-tos | | Accept Scaleway's Terms of Service |
149+
| ~~accept-tos~~ | Deprecated | Deprecated. Accept Scaleway's Terms of Service |
150150
| autoconfig | | Activate auto-configuration of the domain's DNS zone |
151151
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
152152

@@ -383,7 +383,7 @@ scw tem email list [arg=value ...]
383383
| since | | (Optional) List emails created after this date |
384384
| until | | (Optional) List emails created before this date |
385385
| mail-from | | (Optional) List emails sent with this sender's email address |
386-
| ~~mail-to~~ | Deprecated | List emails sent to this recipient's email address |
386+
| ~~mail-to~~ | Deprecated | Deprecated. List emails sent to this recipient's email address |
387387
| mail-rcpt | | (Optional) List emails sent to this recipient's email address |
388388
| statuses.{index} | One of: `unknown`, `new`, `sending`, `sent`, `failed`, `canceled` | (Optional) List emails with any of these statuses |
389389
| subject | | (Optional) List emails with this subject |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/mattn/go-isatty v0.0.20
2626
github.com/moby/buildkit v0.13.2
2727
github.com/opencontainers/go-digest v1.0.0
28-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250306092204-9c7eed199df5
28+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250306171953-f667e6a0c6f7
2929
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3030
github.com/spf13/cobra v1.9.1
3131
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
458458
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
459459
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
460460
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
461-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250306092204-9c7eed199df5 h1:SxQid3QYa7GBdbdKqzTfnLRsaFJjSKPueH3duzuC1Dk=
462-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250306092204-9c7eed199df5/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
461+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250306171953-f667e6a0c6f7 h1:WI5d9aUU+9z+BYEwiXpybM+k7pmlLPtHekNargXAa2g=
462+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250306171953-f667e6a0c6f7/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
463463
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
464464
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
465465
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/tem/v1alpha1/tem_cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func temEmailList() *core.Command {
348348
},
349349
{
350350
Name: "mail-to",
351-
Short: `List emails sent to this recipient's email address`,
351+
Short: `Deprecated. List emails sent to this recipient's email address`,
352352
Required: false,
353353
Deprecated: true,
354354
Positional: false,
@@ -528,9 +528,9 @@ func temDomainCreate() *core.Command {
528528
},
529529
{
530530
Name: "accept-tos",
531-
Short: `Accept Scaleway's Terms of Service`,
531+
Short: `Deprecated. Accept Scaleway's Terms of Service`,
532532
Required: false,
533-
Deprecated: false,
533+
Deprecated: true,
534534
Positional: false,
535535
},
536536
{

0 commit comments

Comments
 (0)