Skip to content

Commit 6ba0f8c

Browse files
committed
Fix
1 parent 3488baf commit 6ba0f8c

32 files changed

+275
-308
lines changed

cmd/scw/testdata/test-all-usage-dns-certificate-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create or return the zone TLS certificate.
3+
Create a new TLS certificate or retrieve information about an existing TLS certificate.
44

55
USAGE:
66
scw dns certificate create <dns-zone ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-dns-certificate-delete-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Delete an TLS certificate.
3+
Delete an existing TLS certificate specified by its DNS zone. Deleting a TLS certificate is permanent and cannot be undone.
44

55
USAGE:
66
scw dns certificate delete <dns-zone ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-dns-certificate-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Get the zone TLS certificate if it exists.
3+
Get the DNS zone's TLS certificate. If you do not have a certificate, the ouptut returns `no certificate found`.
44

55
USAGE:
66
scw dns certificate get <dns-zone ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-dns-certificate-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
List all user TLS certificates.
3+
List all the TLS certificates a user has created, specified by the user's Project ID and the DNS zone.
44

55
USAGE:
66
scw dns certificate list <dns-zone ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-dns-certificate-usage.golden

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ USAGE:
66
scw dns certificate <command>
77

88
AVAILABLE COMMANDS:
9-
create Create or return the zone TLS certificate
10-
delete Delete an TLS certificate
11-
get Get the zone TLS certificate if it exists
12-
list List all user TLS certificates
9+
create Create or get the DNS zone's TLS certificate
10+
delete Delete a TLS certificate
11+
get Get a DNS zone's TLS certificate
12+
list List a user's TLS certificates
1313

1414
FLAGS:
1515
-h, --help help for certificate

cmd/scw/testdata/test-all-usage-dns-record-bulk-update-usage.golden

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Only available with default NS.<br/>
4-
Send a list of actions and records.
3+
Update records within a DNS zone that has default name servers and perform several actions on your records.
54

6-
Action can be:
7-
- add:
8-
- Add new record
9-
- Can be more specific and add a new IP to an existing A record for example
10-
- set:
11-
- Edit a record
12-
- Can be more specific and edit an IP from an existing A record for example
13-
- delete:
14-
- Delete a record
15-
- Can be more specific and delete an IP from an existing A record for example
16-
- clear:
17-
- Delete all records from a DNS zone
5+
Actions include:
6+
- add: allows you to add a new record or add a new IP to an existing A record, for example
7+
- set: allows you to edit a record or edit an IP from an existing A record, for example
8+
- delete: allows you to delete a record or delete an IP from an existing A record, for example
9+
- clear: allows you to delete all records from a DNS zone
1810

1911
All edits will be versioned.
2012

2113
USAGE:
2214
scw dns record bulk-update <dns-zone ...> [arg=value ...]
2315

2416
ARGS:
25-
dns-zone The DNS zone where the DNS zone records will be updated
17+
dns-zone DNS zone in which to update the DNS zone records
2618
[changes.{index}.add.records.{index}.data]
2719
[changes.{index}.add.records.{index}.name]
2820
[changes.{index}.add.records.{index}.priority]
@@ -73,9 +65,9 @@ ARGS:
7365
[changes.{index}.delete.id-fields.type] (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS | LOC | SSHFP | HINFO | RP | URI | DS | NAPTR | DNAME)
7466
[changes.{index}.delete.id-fields.data]
7567
[changes.{index}.delete.id-fields.ttl]
76-
[return-all-records] Whether or not to return all the records
77-
[disallow-new-zone-creation] Forbid the creation of the target zone if not existing (default action is yes)
78-
[serial] Don't use the autoincremenent serial but the provided one (0 to keep the same)
68+
[return-all-records] Specifies whether or not to return all the records
69+
[disallow-new-zone-creation] Disable the creation of the target zone if it does not exist. Target zone creation is disabled by default
70+
[serial] Use the provided serial (0) instead of the auto-increment serial
7971

8072
FLAGS:
8173
-h, --help help for bulk-update

cmd/scw/testdata/test-all-usage-dns-record-clear-usage.golden

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Only available with default NS.<br/>
4-
Delete all the records from a DNS zone.
3+
Delete all records within a DNS zone that has default name servers.<br/>
54
All edits will be versioned.
65

76
USAGE:
87
scw dns record clear <dns-zone ...> [arg=value ...]
98

109
ARGS:
11-
dns-zone The DNS zone to clear
10+
dns-zone DNS zone to clear
1211

1312
FLAGS:
1413
-h, --help help for clear

cmd/scw/testdata/test-all-usage-dns-record-list-nameservers-usage.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Returns a list of Nameservers and their optional glue records for a DNS zone.
3+
Retrieve a list of name servers within a DNS zone and their optional glue records.
44

55
USAGE:
66
scw dns record list-nameservers <dns-zone ...> [arg=value ...]
77

88
ARGS:
9-
[project-id] The project ID on which to filter the returned DNS zone nameservers
10-
dns-zone The DNS zone on which to filter the returned DNS zone nameservers
9+
[project-id] Project ID on which to filter the returned DNS zone name servers
10+
dns-zone DNS zone on which to filter the returned DNS zone name servers
1111

1212
FLAGS:
1313
-h, --help help for list-nameservers

cmd/scw/testdata/test-all-usage-dns-record-list-usage.golden

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Returns a list of DNS records of a DNS zone with default NS.
4-
You can filter the records by type and name.
3+
Retrieve a list of DNS records within a DNS zone that has default name servers.
4+
You can filter records by type and name.
55

66
USAGE:
77
scw dns record list <dns-zone ...> [arg=value ...]
88

99
ARGS:
10-
[project-id] The project ID on which to filter the returned DNS zone records
11-
[order-by] The sort order of the returned DNS zone records (name_asc | name_desc)
12-
dns-zone The DNS zone on which to filter the returned DNS zone records
13-
[name] The name on which to filter the returned DNS zone records
14-
[type] The record type on which to filter the returned DNS zone records (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS | LOC | SSHFP | HINFO | RP | URI | DS | NAPTR | DNAME)
15-
[id] The record ID on which to filter the returned DNS zone records
10+
[project-id] Project ID on which to filter the returned DNS zone records
11+
[order-by] Sort order of the returned DNS zone records (name_asc | name_desc)
12+
dns-zone DNS zone on which to filter the returned DNS zone records
13+
[name] Name on which to filter the returned DNS zone records
14+
[type] Record type on which to filter the returned DNS zone records (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS | LOC | SSHFP | HINFO | RP | URI | DS | NAPTR | DNAME)
15+
[id] Record ID on which to filter the returned DNS zone records
1616

1717
FLAGS:
1818
-h, --help help for list

cmd/scw/testdata/test-all-usage-dns-record-update-nameservers-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Update DNS zone nameservers and set optional glue records.
3+
Update name servers within a DNS zone and set optional glue records.
44

55
USAGE:
66
scw dns record update-nameservers <dns-zone ...> [arg=value ...]
77

88
ARGS:
9-
dns-zone The DNS zone where the DNS zone nameservers will be updated
9+
dns-zone DNS zone in which to update the DNS zone name servers
1010
[ns.{index}.name]
1111
[ns.{index}.ip.{index}]
1212

0 commit comments

Comments
 (0)