Skip to content

Commit 2e1cc44

Browse files
authored
feat(tem): add spam flag (#3308)
1 parent b2aa437 commit 2e1cc44

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

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
@@ -17,7 +17,7 @@ ARGS:
1717
[subject] (Optional) List emails with this subject
1818
[search] (Optional) List emails by searching to all fields
1919
[order-by] (Optional) List emails corresponding to specific criteria (created_at_desc | created_at_asc | updated_at_desc | updated_at_asc | status_desc | status_asc | mail_from_desc | mail_from_asc | mail_rcpt_desc | mail_rcpt_asc | subject_desc | subject_asc)
20-
[flags.{index}] (Optional) List emails containing only specific flags (unknown_flag | soft_bounce | hard_bounce)
20+
[flags.{index}] (Optional) List emails containing only specific flags (unknown_flag | soft_bounce | hard_bounce | spam)
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:

docs/commands/tem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ scw tem email list [arg=value ...]
278278
| subject | | (Optional) List emails with this subject |
279279
| search | | (Optional) List emails by searching to all fields |
280280
| order-by | One of: `created_at_desc`, `created_at_asc`, `updated_at_desc`, `updated_at_asc`, `status_desc`, `status_asc`, `mail_from_desc`, `mail_from_asc`, `mail_rcpt_desc`, `mail_rcpt_asc`, `subject_desc`, `subject_asc` | (Optional) List emails corresponding to specific criteria |
281-
| flags.{index} | One of: `unknown_flag`, `soft_bounce`, `hard_bounce` | (Optional) List emails containing only specific flags |
281+
| flags.{index} | One of: `unknown_flag`, `soft_bounce`, `hard_bounce`, `spam` | (Optional) List emails containing only specific flags |
282282
| region | Default: `fr-par`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |
283283

284284

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/moby/buildkit v0.11.6
2525
github.com/opencontainers/go-digest v1.0.0
2626
github.com/pkg/errors v0.9.1
27-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230724145839-1ed69add4815
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.7.0
3030
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj
497497
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
498498
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
499499
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
500-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230724145839-1ed69add4815 h1:FAzYKNVhJhVyhbF690kRj+iaGGFtROrnw3UtSeNP4s8=
501-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230724145839-1ed69add4815/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
500+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20 h1:a9hSJdJcd16e0HoMsnFvaHvxB3pxSD+SC7+CISp7xY0=
501+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
502502
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
503503
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
504504
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/tem/v1alpha1/tem_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ func temEmailList() *core.Command {
322322
Required: false,
323323
Deprecated: false,
324324
Positional: false,
325-
EnumValues: []string{"unknown_flag", "soft_bounce", "hard_bounce"},
325+
EnumValues: []string{"unknown_flag", "soft_bounce", "hard_bounce", "spam"},
326326
},
327327
core.RegionArgSpec(scw.RegionFrPar, scw.Region(core.AllLocalities)),
328328
},

0 commit comments

Comments
 (0)