Skip to content

Commit d95f770

Browse files
docs(redis): add documentation on endpoint (#2415)
Co-authored-by: Rémy Léone <[email protected]>
1 parent d9d6b05 commit d95f770

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

cmd/scw/testdata/test-all-usage-redis-endpoint-delete-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USAGE:
66
scw redis endpoint delete [arg=value ...]
77

88
ARGS:
9-
endpoint-id
9+
endpoint-id UUID of the endpoint you want to delete
1010
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
1111

1212
FLAGS:

cmd/scw/testdata/test-all-usage-redis-endpoint-get-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
Get an endpoint.
44

55
USAGE:
6-
scw redis endpoint get [arg=value ...]
6+
scw redis endpoint get <endpoint-id ...> [arg=value ...]
77

88
ARGS:
9-
endpoint-id
9+
endpoint-id UUID of the endpoint you want to get
1010
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
1111

1212
FLAGS:

docs/commands/redis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ scw redis endpoint delete [arg=value ...]
379379

380380
| Name | | Description |
381381
|------|---|-------------|
382-
| endpoint-id | Required | |
382+
| endpoint-id | Required | UUID of the endpoint you want to delete |
383383
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |
384384

385385

@@ -391,15 +391,15 @@ Get an endpoint.
391391
**Usage:**
392392

393393
```
394-
scw redis endpoint get [arg=value ...]
394+
scw redis endpoint get <endpoint-id ...> [arg=value ...]
395395
```
396396

397397

398398
**Args:**
399399

400400
| Name | | Description |
401401
|------|---|-------------|
402-
| endpoint-id | Required | |
402+
| endpoint-id | Required | UUID of the endpoint you want to get |
403403
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |
404404

405405

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/kubernetes-client/go-base v0.0.0-20190205182333-3d0e39759d98
1818
github.com/mattn/go-colorable v0.1.12
1919
github.com/mattn/go-isatty v0.0.14
20-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220707154924-556b07217bb3
20+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220707171016-83f8b0bacb31
2121
github.com/spf13/cobra v1.5.0
2222
github.com/spf13/pflag v1.0.5
2323
github.com/stretchr/testify v1.8.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
5757
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
5858
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5959
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
60-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220707154924-556b07217bb3 h1:ySnHdnqH83uN6ZtKO/uKUsSLLx7K3UZPAv+C/fvAoHY=
61-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220707154924-556b07217bb3/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
60+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220707171016-83f8b0bacb31 h1:xiYJc7OR9OrGHCT6Bluvr7hKz3Tc7AQK4iAuFlvMeOM=
61+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220707171016-83f8b0bacb31/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
6262
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
6363
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
6464
github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=

internal/namespaces/redis/v1alpha1/redis_cli.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,7 @@ func redisEndpointDelete() *core.Command {
10631063
ArgSpecs: core.ArgSpecs{
10641064
{
10651065
Name: "endpoint-id",
1066+
Short: `UUID of the endpoint you want to delete`,
10661067
Required: true,
10671068
Deprecated: false,
10681069
Positional: false,
@@ -1098,9 +1099,10 @@ func redisEndpointGet() *core.Command {
10981099
ArgSpecs: core.ArgSpecs{
10991100
{
11001101
Name: "endpoint-id",
1102+
Short: `UUID of the endpoint you want to get`,
11011103
Required: true,
11021104
Deprecated: false,
1103-
Positional: false,
1105+
Positional: true,
11041106
},
11051107
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1, scw.ZonePlWaw1),
11061108
},

0 commit comments

Comments
 (0)