Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(webhosting): add support for webhosting v1 #4473

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Project settings allow you to manage the configuration of your settings.
Project settings allow you to manage the configuration of your projects.

USAGE:
scw tem project-settings
Expand Down
1 change: 1 addition & 0 deletions cmd/scw/testdata/test-all-usage-tem-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ AVAILABLE COMMANDS:
blocklists Blocklist
domain Domain management commands
email Email management commands
offers Project offers management commands
project-settings Project settings management commands
webhook Webhook management commands

Expand Down
19 changes: 17 additions & 2 deletions docs/commands/tem.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This API allows you to manage your Transactional Email services.
- [Get an email](#get-an-email)
- [Email statuses](#email-statuses)
- [List emails](#list-emails)
- [Project offers management commands](#project-offers-management-commands)
- [Project settings management commands](#project-settings-management-commands)
- [Webhook management commands](#webhook-management-commands)
- [Create a Webhook](#create-a-webhook)
Expand Down Expand Up @@ -392,11 +393,25 @@ scw tem email list [arg=value ...]



## Project offers management commands

This section allows you to manage and get get subscribed information about your project email offer.

This section allows you to manage and get get subscribed information about your project email offer.

**Usage:**

```
scw tem offers
```



## Project settings management commands

Project settings allow you to manage the configuration of your settings.
Project settings allow you to manage the configuration of your projects.

Project settings allow you to manage the configuration of your settings.
Project settings allow you to manage the configuration of your projects.

**Usage:**

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ require (
github.com/mattn/go-isatty v0.0.20
github.com/moby/buildkit v0.13.2
github.com/opencontainers/go-digest v1.0.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250117133139-e360c98f921d
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.31.0.20250130081923-422331c4eeb7
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.6
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250117133139-e360c98f921d h1:npDtKGreHq1EA6DoHo18YG25bsvZVlo4XlNm822GZ7A=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250117133139-e360c98f921d/go.mod h1:kzh+BSAvpoyHHdHBCDhmSWtBc1NbLMZ2lWHqnBoxFks=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.31.0.20250130081923-422331c4eeb7 h1:iZSgQ0e3DtYoUKI1mcxArXzWlX711NKbAjsyjkrTPQ4=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.31.0.20250130081923-422331c4eeb7/go.mod h1:kzh+BSAvpoyHHdHBCDhmSWtBc1NbLMZ2lWHqnBoxFks=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=
Expand Down
12 changes: 11 additions & 1 deletion internal/namespaces/tem/v1alpha1/tem_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func GetGeneratedCommands() *core.Commands {
temWebhook(),
temProjectSettings(),
temBlocklists(),
temOffers(),
temEmailCreate(),
temEmailGet(),
temEmailList(),
Expand Down Expand Up @@ -86,7 +87,7 @@ func temWebhook() *core.Command {
func temProjectSettings() *core.Command {
return &core.Command{
Short: `Project settings management commands`,
Long: `Project settings allow you to manage the configuration of your settings.`,
Long: `Project settings allow you to manage the configuration of your projects.`,
Namespace: "tem",
Resource: "project-settings",
}
Expand All @@ -101,6 +102,15 @@ func temBlocklists() *core.Command {
}
}

func temOffers() *core.Command {
return &core.Command{
Short: `Project offers management commands`,
Long: `This section allows you to manage and get get subscribed information about your project email offer.`,
Namespace: "tem",
Resource: "offers",
}
}

func temEmailCreate() *core.Command {
return &core.Command{
Short: `Send an email`,
Expand Down
Loading
Loading