Skip to content

Commit

Permalink
Merge branch 'master' into fix/rdb_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax authored Jan 10, 2025
2 parents e88a55f + 453ebd1 commit 15f92bc
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Update the parameters of an existing Apple silicon server, specified by its server ID.

USAGE:
scw apple-silicon server update <name ...> [arg=value ...]
scw apple-silicon server update <server-id ...> [arg=value ...]

ARGS:
server-id UUID of the server you want to update
name Updated name for your server
[name] Updated name for your server
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
[enable-vpc] Activate or deactivate Private Network support for this server
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Create a domain name binding for the container with the specified ID.
Create a custom domain for the container with the specified ID.

USAGE:
scw container domain create [arg=value ...]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Delete the domain name binding with the specific ID.
Delete the custom domain with the specific ID.

USAGE:
scw container domain delete <domain-id ...> [arg=value ...]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Get a domain name binding for the container with the specified ID.
Get a custom domain for the container with the specified ID.

USAGE:
scw container domain get <domain-id ...> [arg=value ...]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List all domain name bindings in a specified region.
List all custom domains in a specified region.

USAGE:
scw container domain list [arg=value ...]
Expand Down
8 changes: 4 additions & 4 deletions cmd/scw/testdata/test-all-usage-container-domain-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ USAGE:
scw container domain <command>

AVAILABLE COMMANDS:
create Create a domain name binding
delete Delete a domain name binding
get Get a domain name binding
list List all domain name bindings
create Create a custom domain
delete Delete a custom domain
get Get a custom domain
list List all custom domains

FLAGS:
-h, --help help for domain
Expand Down
4 changes: 2 additions & 2 deletions docs/commands/apple-silicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Update the parameters of an existing Apple silicon server, specified by its serv
**Usage:**

```
scw apple-silicon server update <name ...> [arg=value ...]
scw apple-silicon server update <server-id ...> [arg=value ...]
```


Expand All @@ -237,7 +237,7 @@ scw apple-silicon server update <name ...> [arg=value ...]
| Name | | Description |
|------|---|-------------|
| server-id | Required | UUID of the server you want to update |
| name | Required | Updated name for your server |
| name | | Updated name for your server |
| schedule-deletion | | Specify whether the server should be flagged for automatic deletion |
| enable-vpc | | Activate or deactivate Private Network support for this server |
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
Expand Down
24 changes: 12 additions & 12 deletions docs/commands/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ This API allows you to manage your Serverless Containers.
- [Update an existing cron](#update-an-existing-cron)
- [Deploy a container](#deploy-a-container)
- [Domain management commands](#domain-management-commands)
- [Create a domain name binding](#create-a-domain-name-binding)
- [Delete a domain name binding](#delete-a-domain-name-binding)
- [Get a domain name binding](#get-a-domain-name-binding)
- [List all domain name bindings](#list-all-domain-name-bindings)
- [Create a custom domain](#create-a-custom-domain)
- [Delete a custom domain](#delete-a-custom-domain)
- [Get a custom domain](#get-a-custom-domain)
- [List all custom domains](#list-all-custom-domains)
- [Namespace management commands](#namespace-management-commands)
- [Create a new namespace](#create-a-new-namespace)
- [Delete an existing namespace](#delete-an-existing-namespace)
Expand Down Expand Up @@ -366,9 +366,9 @@ scw container deploy [arg=value ...]
Domain management commands.


### Create a domain name binding
### Create a custom domain

Create a domain name binding for the container with the specified ID.
Create a custom domain for the container with the specified ID.

**Usage:**

Expand All @@ -387,9 +387,9 @@ scw container domain create [arg=value ...]



### Delete a domain name binding
### Delete a custom domain

Delete the domain name binding with the specific ID.
Delete the custom domain with the specific ID.

**Usage:**

Expand All @@ -407,9 +407,9 @@ scw container domain delete <domain-id ...> [arg=value ...]



### Get a domain name binding
### Get a custom domain

Get a domain name binding for the container with the specified ID.
Get a custom domain for the container with the specified ID.

**Usage:**

Expand All @@ -427,9 +427,9 @@ scw container domain get <domain-id ...> [arg=value ...]



### List all domain name bindings
### List all custom domains

List all domain name bindings in a specified region.
List all custom domains in a specified region.

**Usage:**

Expand Down
34 changes: 17 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ toolchain go1.22.2

require (
github.com/alecthomas/assert v1.0.0
github.com/aws/aws-sdk-go-v2 v1.32.7
github.com/aws/aws-sdk-go-v2/service/s3 v1.72.0
github.com/aws/aws-sdk-go-v2 v1.32.8
github.com/aws/aws-sdk-go-v2/service/s3 v1.72.2
github.com/buildpacks/pack v0.34.2
github.com/c-bata/go-prompt v0.2.6
github.com/charmbracelet/bubbletea v1.2.4
Expand All @@ -26,13 +26,13 @@ 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.20241226101018-6140d56d1e5c
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250108093124-1be16fad27b2
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.10.0
golang.org/x/crypto v0.31.0
golang.org/x/term v0.27.0
golang.org/x/crypto v0.32.0
golang.org/x/term v0.28.0
golang.org/x/text v0.21.0
gopkg.in/yaml.v3 v3.0.1
)
Expand All @@ -54,7 +54,7 @@ require (
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/Microsoft/hcsshim v0.12.2 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/ProtonMail/go-crypto v1.1.3 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/alecthomas/colour v0.1.0 // indirect
github.com/alecthomas/repr v0.2.0 // indirect
Expand All @@ -63,16 +63,16 @@ require (
github.com/aws/aws-sdk-go-v2/config v1.27.7 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.7 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.26 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.26 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.27 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.27 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.26 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.27 // indirect
github.com/aws/aws-sdk-go-v2/service/ecr v1.24.5 // indirect
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.21.5 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.8 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.8 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.8 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 // indirect
Expand All @@ -94,7 +94,7 @@ require (
github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect
github.com/containerd/ttrpc v1.2.3 // indirect
github.com/containerd/typeurl/v2 v2.1.1 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/cyphar/filepath-securejoin v0.2.5 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/distribution/reference v0.6.0 // indirect
Expand All @@ -110,8 +110,8 @@ require (
github.com/gdamore/encoding v1.0.0 // indirect
github.com/gdamore/tcell/v2 v2.7.4 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-git/go-git/v5 v5.12.0 // indirect
github.com/go-git/go-billy/v5 v5.6.0 // indirect
github.com/go-git/go-git/v5 v5.13.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gofrs/flock v0.8.1 // indirect
Expand Down Expand Up @@ -170,7 +170,7 @@ require (
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/shibumi/go-pathspec v1.3.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/skeema/knownhosts v1.3.0 // indirect
github.com/tonistiigi/fsutil v0.0.0-20240424095704-91a3fc46842c // indirect
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect
github.com/tonistiigi/vt100 v0.0.0-20230623042737-f9a4f7ef6531 // indirect
Expand All @@ -190,7 +190,7 @@ require (
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240401170217-c3f982113cda // indirect
Expand Down
Loading

0 comments on commit 15f92bc

Please sign in to comment.