Skip to content

Commit 89a7add

Browse files
committed
Fix
1 parent aa9d51d commit 89a7add

13 files changed

Lines changed: 26 additions & 74 deletions

cmd/scw/testdata/test-all-usage-container-container-create-usage.golden

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ ARGS:
2323
[port]
2424
[secret-environment-variables.{index}.key]
2525
[secret-environment-variables.{index}.value]
26+
[http-option] Configure how HTTP and HTTPS requests are handled
2627
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
2728

28-
DEPRECATED ARGS:
29-
[http-option] Configure how HTTP and HTTPS requests are handled
30-
3129
FLAGS:
3230
-h, --help help for create
3331

cmd/scw/testdata/test-all-usage-container-container-update-usage.golden

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ ARGS:
2323
[port]
2424
[secret-environment-variables.{index}.key]
2525
[secret-environment-variables.{index}.value]
26+
[http-option] Configure how HTTP and HTTPS requests are handled
2627
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
2728

28-
DEPRECATED ARGS:
29-
[http-option] Configure how HTTP and HTTPS requests are handled
30-
3129
FLAGS:
3230
-h, --help help for update
3331

cmd/scw/testdata/test-all-usage-function-function-create-usage.golden

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ ARGS:
2020
[description]
2121
[secret-environment-variables.{index}.key]
2222
[secret-environment-variables.{index}.value]
23+
[http-option] Configure how HTTP and HTTPS requests are handled
2324
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
2425

25-
DEPRECATED ARGS:
26-
[http-option] Configure how HTTP and HTTPS requests are handled
27-
2826
FLAGS:
2927
-h, --help help for create
3028

cmd/scw/testdata/test-all-usage-function-function-update-usage.golden

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ ARGS:
2020
[description]
2121
[secret-environment-variables.{index}.key]
2222
[secret-environment-variables.{index}.value]
23+
[http-option] Configure how HTTP and HTTPS requests are handled
2324
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
2425

25-
DEPRECATED ARGS:
26-
[http-option] Configure how HTTP and HTTPS requests are handled
27-
2826
FLAGS:
2927
-h, --help help for update
3028

cmd/scw/testdata/test-all-usage-rdb-read-replica-usage.golden

Lines changed: 0 additions & 15 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-rdb-usage.golden

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ USAGE:
66
scw rdb <command>
77

88
AVAILABLE COMMANDS:
9-
acl Access Control List (ACL) management commands
10-
backup Backup management commands
11-
database Database management commands
12-
engine Database engines commands
13-
instance Instance management commands
14-
log Instance logs management commands
15-
node-type Node types management commands
16-
privilege User privileges management commands
17-
read-replica Read replica management
18-
snapshot Block snapshot management
19-
user User management commands
9+
acl Access Control List (ACL) management commands
10+
backup Backup management commands
11+
database Database management commands
12+
engine Database engines commands
13+
instance Instance management commands
14+
log Instance logs management commands
15+
node-type Node types management commands
16+
privilege User privileges management commands
17+
snapshot Block snapshot management
18+
user User management commands
2019

2120
FLAGS:
2221
-h, --help help for rdb

docs/commands/container.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ scw container container create [arg=value ...]
5858
| port | | |
5959
| secret-environment-variables.{index}.key | | |
6060
| secret-environment-variables.{index}.value | | |
61-
| ~~http-option~~ | Deprecated | Configure how HTTP and HTTPS requests are handled |
61+
| http-option | | Configure how HTTP and HTTPS requests are handled |
6262
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
6363

6464

@@ -179,7 +179,7 @@ scw container container update <container-id ...> [arg=value ...]
179179
| port | | |
180180
| secret-environment-variables.{index}.key | | |
181181
| secret-environment-variables.{index}.value | | |
182-
| ~~http-option~~ | Deprecated | Configure how HTTP and HTTPS requests are handled |
182+
| http-option | | Configure how HTTP and HTTPS requests are handled |
183183
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
184184

185185

docs/commands/function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ scw function function create [arg=value ...]
127127
| description | | |
128128
| secret-environment-variables.{index}.key | | |
129129
| secret-environment-variables.{index}.value | | |
130-
| ~~http-option~~ | Deprecated | Configure how HTTP and HTTPS requests are handled |
130+
| http-option | | Configure how HTTP and HTTPS requests are handled |
131131
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
132132

133133

@@ -286,7 +286,7 @@ scw function function update <function-id ...> [arg=value ...]
286286
| description | | |
287287
| secret-environment-variables.{index}.key | | |
288288
| secret-environment-variables.{index}.value | | |
289-
| ~~http-option~~ | Deprecated | Configure how HTTP and HTTPS requests are handled |
289+
| http-option | | Configure how HTTP and HTTPS requests are handled |
290290
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
291291

292292

docs/commands/rdb.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ Database RDB API
4646
- [User privileges management commands](#user-privileges-management-commands)
4747
- [List privileges of a given user for a given database on a given instance](#list-privileges-of-a-given-user-for-a-given-database-on-a-given-instance)
4848
- [Set privileges of a given user for a given database on a given instance](#set-privileges-of-a-given-user-for-a-given-database-on-a-given-instance)
49-
- [Read replica management](#read-replica-management)
5049
- [Block snapshot management](#block-snapshot-management)
5150
- [Create an instance snapshot](#create-an-instance-snapshot)
5251
- [Delete an instance snapshot](#delete-an-instance-snapshot)
@@ -925,22 +924,6 @@ scw rdb privilege set [arg=value ...]
925924

926925

927926

928-
## Read replica management
929-
930-
A read replica is a live copy of the main database instance only available for reading. Read replica allows you to scale your database instance for read-heavy database workloads. Read replicas can also be used for Business Intelligence workloads.
931-
932-
933-
A read replica is a live copy of the main database instance only available for reading. Read replica allows you to scale your database instance for read-heavy database workloads. Read replicas can also be used for Business Intelligence workloads.
934-
935-
936-
**Usage:**
937-
938-
```
939-
scw rdb read-replica
940-
```
941-
942-
943-
944927
## Block snapshot management
945928

946929
Create, restore and manage block snapshot

go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ require (
3232
github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d // indirect
3333
github.com/chzyer/logex v1.2.0 // indirect
3434
github.com/chzyer/test v0.0.0-20210722231415-061457976a23 // indirect
35+
github.com/davecgh/go-spew v1.1.1 // indirect
3536
github.com/etdub/goparsetime v0.0.0-20160315173935-ea17b0ac3318 // indirect
37+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
3638
github.com/pkg/errors v0.8.1 // indirect
39+
github.com/pmezard/go-difflib v1.0.0 // indirect
3740
github.com/sergi/go-diff v1.2.0 // indirect
3841
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
42+
gopkg.in/yaml.v2 v2.4.0 // indirect
3943
)

0 commit comments

Comments
 (0)