diff --git a/cmd/scw/testdata/test-all-usage-tem-project-settings-usage.golden b/cmd/scw/testdata/test-all-usage-tem-project-settings-usage.golden new file mode 100644 index 0000000000..d456183294 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-tem-project-settings-usage.golden @@ -0,0 +1,15 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Project settings allow you to manage the configuration of your settings. + +USAGE: + scw tem project-settings + +FLAGS: + -h, --help help for project-settings + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-tem-usage.golden b/cmd/scw/testdata/test-all-usage-tem-usage.golden index c46a901881..97c1e149b6 100644 --- a/cmd/scw/testdata/test-all-usage-tem-usage.golden +++ b/cmd/scw/testdata/test-all-usage-tem-usage.golden @@ -6,9 +6,10 @@ USAGE: scw tem AVAILABLE COMMANDS: - domain Domain management commands - email Email management commands - webhook Webhook management commands + domain Domain management commands + email Email management commands + project-settings Project settings management commands + webhook Webhook management commands FLAGS: -h, --help help for tem diff --git a/docs/commands/tem.md b/docs/commands/tem.md index 099a519ae8..4270493d6e 100644 --- a/docs/commands/tem.md +++ b/docs/commands/tem.md @@ -16,6 +16,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 settings management commands](#project-settings-management-commands) - [Webhook management commands](#webhook-management-commands) - [Create a Webhook](#create-a-webhook) - [Delete a Webhook](#delete-a-webhook) @@ -315,6 +316,20 @@ scw tem email list [arg=value ...] +## 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 settings. + +**Usage:** + +``` +scw tem project-settings +``` + + + ## Webhook management commands Webhooks enable real-time communication and automation between systems by sending messages through all protocols supported by SNS, such as HTTP, HTTPS, and Serverless Functions, allowing for immediate updates and actions based on specific events. This feature is in beta. You can request quotas from the [Scaleway betas page](https://www.scaleway.com/fr/betas/#email-webhooks). diff --git a/internal/namespaces/tem/v1alpha1/tem_cli.go b/internal/namespaces/tem/v1alpha1/tem_cli.go index f75cb2c695..0da67c098a 100644 --- a/internal/namespaces/tem/v1alpha1/tem_cli.go +++ b/internal/namespaces/tem/v1alpha1/tem_cli.go @@ -23,6 +23,7 @@ func GetGeneratedCommands() *core.Commands { temEmail(), temDomain(), temWebhook(), + temProjectSettings(), temEmailCreate(), temEmailGet(), temEmailList(), @@ -78,6 +79,15 @@ 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.`, + Namespace: "tem", + Resource: "project-settings", + } +} + func temEmailCreate() *core.Command { return &core.Command{ Short: `Send an email`,