Skip to content

Commit 5424ac7

Browse files
committed
Fix
1 parent 1d56e6e commit 5424ac7

5 files changed

Lines changed: 14 additions & 55 deletions

File tree

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/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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ require (
2222
github.com/spf13/pflag v1.0.5
2323
github.com/stretchr/testify v1.7.1
2424
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
25-
golang.org/x/text v0.3.7
2625
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
2726
)
2827

@@ -32,8 +31,12 @@ require (
3231
github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d // indirect
3332
github.com/chzyer/logex v1.2.0 // indirect
3433
github.com/chzyer/test v0.0.0-20210722231415-061457976a23 // indirect
34+
github.com/davecgh/go-spew v1.1.1 // indirect
3535
github.com/etdub/goparsetime v0.0.0-20160315173935-ea17b0ac3318 // indirect
36+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
3637
github.com/pkg/errors v0.8.1 // indirect
38+
github.com/pmezard/go-difflib v1.0.0 // indirect
3739
github.com/sergi/go-diff v1.2.0 // indirect
3840
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
41+
gopkg.in/yaml.v2 v2.4.0 // indirect
3942
)

internal/namespaces/rdb/v1/rdb_cli.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ func GetGeneratedCommands() *core.Commands {
3030
rdbNodeType(),
3131
rdbLog(),
3232
rdbSnapshot(),
33-
rdbReadReplica(),
3433
rdbEngineList(),
3534
rdbNodeTypeList(),
3635
rdbBackupList(),
@@ -182,16 +181,6 @@ func rdbSnapshot() *core.Command {
182181
}
183182
}
184183

185-
func rdbReadReplica() *core.Command {
186-
return &core.Command{
187-
Short: `Read replica management`,
188-
Long: `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.
189-
`,
190-
Namespace: "rdb",
191-
Resource: "read-replica",
192-
}
193-
}
194-
195184
func rdbEngineList() *core.Command {
196185
return &core.Command{
197186
Short: `List available database engines`,

0 commit comments

Comments
 (0)