Skip to content

Commit 0e634d3

Browse files
feat: update generated cli (#1942)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 7df331f commit 0e634d3

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ARGS:
2727
[changes.{index}.add.records.{index}.name]
2828
[changes.{index}.add.records.{index}.priority]
2929
[changes.{index}.add.records.{index}.ttl]
30-
[changes.{index}.add.records.{index}.type] (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS)
30+
[changes.{index}.add.records.{index}.type] (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS | LOC | SSHFP | HINFO | RP | URI | DS | NAPTR)
3131
[changes.{index}.add.records.{index}.comment]
3232
[changes.{index}.add.records.{index}.geo-ip-config.matches.{index}.countries.{index}]
3333
[changes.{index}.add.records.{index}.geo-ip-config.matches.{index}.continents.{index}]
@@ -45,14 +45,14 @@ ARGS:
4545
[changes.{index}.add.records.{index}.id]
4646
[changes.{index}.set.id]
4747
[changes.{index}.set.id-fields.name]
48-
[changes.{index}.set.id-fields.type] (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS)
48+
[changes.{index}.set.id-fields.type] (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS | LOC | SSHFP | HINFO | RP | URI | DS | NAPTR)
4949
[changes.{index}.set.id-fields.data]
5050
[changes.{index}.set.id-fields.ttl]
5151
[changes.{index}.set.records.{index}.data]
5252
[changes.{index}.set.records.{index}.name]
5353
[changes.{index}.set.records.{index}.priority]
5454
[changes.{index}.set.records.{index}.ttl]
55-
[changes.{index}.set.records.{index}.type] (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS)
55+
[changes.{index}.set.records.{index}.type] (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS | LOC | SSHFP | HINFO | RP | URI | DS | NAPTR)
5656
[changes.{index}.set.records.{index}.comment]
5757
[changes.{index}.set.records.{index}.geo-ip-config.matches.{index}.countries.{index}]
5858
[changes.{index}.set.records.{index}.geo-ip-config.matches.{index}.continents.{index}]
@@ -70,7 +70,7 @@ ARGS:
7070
[changes.{index}.set.records.{index}.id]
7171
[changes.{index}.delete.id]
7272
[changes.{index}.delete.id-fields.name]
73-
[changes.{index}.delete.id-fields.type] (unknown | A | AAAA | CNAME | TXT | SRV | TLSA | MX | NS | PTR | CAA | ALIAS)
73+
[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)
7474
[changes.{index}.delete.id-fields.data]
7575
[changes.{index}.delete.id-fields.ttl]
7676
[return-all-records] Whether or not to return all the records

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[order-by] The sort order of the returned DNS zone records (name_asc | name_desc)
1212
dns-zone The DNS zone on which to filter the returned DNS zone records
1313
[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)
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)
1515

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

docs/commands/dns.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ scw dns record bulk-update <dns-zone ...> [arg=value ...]
198198
| changes.{index}.add.records.{index}.name | | |
199199
| changes.{index}.add.records.{index}.priority | | |
200200
| changes.{index}.add.records.{index}.ttl | | |
201-
| changes.{index}.add.records.{index}.type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS` | |
201+
| changes.{index}.add.records.{index}.type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS`, `LOC`, `SSHFP`, `HINFO`, `RP`, `URI`, `DS`, `NAPTR` | |
202202
| changes.{index}.add.records.{index}.comment | | |
203203
| changes.{index}.add.records.{index}.geo-ip-config.matches.{index}.countries.{index} | | |
204204
| changes.{index}.add.records.{index}.geo-ip-config.matches.{index}.continents.{index} | | |
@@ -216,14 +216,14 @@ scw dns record bulk-update <dns-zone ...> [arg=value ...]
216216
| changes.{index}.add.records.{index}.id | | |
217217
| changes.{index}.set.id | | |
218218
| changes.{index}.set.id-fields.name | | |
219-
| changes.{index}.set.id-fields.type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS` | |
219+
| changes.{index}.set.id-fields.type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS`, `LOC`, `SSHFP`, `HINFO`, `RP`, `URI`, `DS`, `NAPTR` | |
220220
| changes.{index}.set.id-fields.data | | |
221221
| changes.{index}.set.id-fields.ttl | | |
222222
| changes.{index}.set.records.{index}.data | | |
223223
| changes.{index}.set.records.{index}.name | | |
224224
| changes.{index}.set.records.{index}.priority | | |
225225
| changes.{index}.set.records.{index}.ttl | | |
226-
| changes.{index}.set.records.{index}.type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS` | |
226+
| changes.{index}.set.records.{index}.type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS`, `LOC`, `SSHFP`, `HINFO`, `RP`, `URI`, `DS`, `NAPTR` | |
227227
| changes.{index}.set.records.{index}.comment | | |
228228
| changes.{index}.set.records.{index}.geo-ip-config.matches.{index}.countries.{index} | | |
229229
| changes.{index}.set.records.{index}.geo-ip-config.matches.{index}.continents.{index} | | |
@@ -241,7 +241,7 @@ scw dns record bulk-update <dns-zone ...> [arg=value ...]
241241
| changes.{index}.set.records.{index}.id | | |
242242
| changes.{index}.delete.id | | |
243243
| changes.{index}.delete.id-fields.name | | |
244-
| changes.{index}.delete.id-fields.type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS` | |
244+
| changes.{index}.delete.id-fields.type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS`, `LOC`, `SSHFP`, `HINFO`, `RP`, `URI`, `DS`, `NAPTR` | |
245245
| changes.{index}.delete.id-fields.data | | |
246246
| changes.{index}.delete.id-fields.ttl | | |
247247
| return-all-records | | Whether or not to return all the records |
@@ -314,7 +314,7 @@ scw dns record list <dns-zone ...> [arg=value ...]
314314
| order-by | One of: `name_asc`, `name_desc` | The sort order of the returned DNS zone records |
315315
| dns-zone | Required | The DNS zone on which to filter the returned DNS zone records |
316316
| name | | The name on which to filter the returned DNS zone records |
317-
| type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS` | The record type on which to filter the returned DNS zone records |
317+
| type | One of: `unknown`, `A`, `AAAA`, `CNAME`, `TXT`, `SRV`, `TLSA`, `MX`, `NS`, `PTR`, `CAA`, `ALIAS`, `LOC`, `SSHFP`, `HINFO`, `RP`, `URI`, `DS`, `NAPTR` | The record type on which to filter the returned DNS zone records |
318318

319319

320320

internal/namespaces/domain/v2beta1/domain_cli.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ You can filter the records by type and name.
397397
Required: false,
398398
Deprecated: false,
399399
Positional: false,
400-
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS"},
400+
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS", "LOC", "SSHFP", "HINFO", "RP", "URI", "DS", "NAPTR"},
401401
},
402402
},
403403
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
@@ -501,7 +501,7 @@ All edits will be versioned.
501501
Required: false,
502502
Deprecated: false,
503503
Positional: false,
504-
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS"},
504+
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS", "LOC", "SSHFP", "HINFO", "RP", "URI", "DS", "NAPTR"},
505505
},
506506
{
507507
Name: "changes.{index}.add.records.{index}.comment",
@@ -611,7 +611,7 @@ All edits will be versioned.
611611
Required: false,
612612
Deprecated: false,
613613
Positional: false,
614-
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS"},
614+
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS", "LOC", "SSHFP", "HINFO", "RP", "URI", "DS", "NAPTR"},
615615
},
616616
{
617617
Name: "changes.{index}.set.id-fields.data",
@@ -654,7 +654,7 @@ All edits will be versioned.
654654
Required: false,
655655
Deprecated: false,
656656
Positional: false,
657-
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS"},
657+
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS", "LOC", "SSHFP", "HINFO", "RP", "URI", "DS", "NAPTR"},
658658
},
659659
{
660660
Name: "changes.{index}.set.records.{index}.comment",
@@ -764,7 +764,7 @@ All edits will be versioned.
764764
Required: false,
765765
Deprecated: false,
766766
Positional: false,
767-
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS"},
767+
EnumValues: []string{"unknown", "A", "AAAA", "CNAME", "TXT", "SRV", "TLSA", "MX", "NS", "PTR", "CAA", "ALIAS", "LOC", "SSHFP", "HINFO", "RP", "URI", "DS", "NAPTR"},
768768
},
769769
{
770770
Name: "changes.{index}.delete.id-fields.data",

0 commit comments

Comments
 (0)