Skip to content

Commit

Permalink
feat(tem): add support for message-id in listing (#2691)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <rleone@scaleway.com>
  • Loading branch information
scaleway-bot and remyleone committed Dec 27, 2022
1 parent 59bfbd6 commit e42713e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ USAGE:
ARGS:
[project-id] Optional ID of the project in which to list the emails
[domain-id] Optional ID of the domain for which to list the emails
[message-id] Optional ID of the message for which to list the emails
[since] Optional, list emails created after this date
[until] Optional, list emails created before this date
[mail-from] Optional, list emails sent with this `mail_from` sender's address
Expand Down
1 change: 1 addition & 0 deletions docs/commands/tem.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ scw tem email list [arg=value ...]
|------|---|-------------|
| project-id | | Optional ID of the project in which to list the emails |
| domain-id | | Optional ID of the domain for which to list the emails |
| message-id | | Optional ID of the message for which to list the emails |
| since | | Optional, list emails created after this date |
| until | | Optional, list emails created before this date |
| mail-from | | Optional, list emails sent with this `mail_from` sender's address |
Expand Down
7 changes: 7 additions & 0 deletions internal/namespaces/tem/v1alpha1/tem_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ func temEmailList() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "message-id",
Short: `Optional ID of the message for which to list the emails`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "since",
Short: `Optional, list emails created after this date`,
Expand Down

0 comments on commit e42713e

Please sign in to comment.