Skip to content

Commit 963c835

Browse files
feat: update generated cli (#2409)
Co-authored-by: Rémy Léone <[email protected]>
1 parent d68f773 commit 963c835

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

cmd/scw/testdata/test-all-usage-instance-ip-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ EXAMPLES:
1313
scw instance ip get 11111111-1111-1111-1111-111111111111 zone=fr-par-1
1414

1515
Get an IP using directly the given IP address
16-
scw instance ip get
16+
scw instance ip get 51.15.253.183
1717

1818
ARGS:
1919
ip The IP ID or address to get

cmd/scw/testdata/test-all-usage-instance-ip-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ EXAMPLES:
1313
scw instance ip list zone=fr-par-1
1414

1515
ARGS:
16-
[name] Filter on the IP address (Works as a LIKE operation on the IP address)
1716
[project-id] The project ID the IPs are reserved in
1817
[tags.{index}] Filter IPs with these exact tags (to filter with several tags, use commas to separate them)
18+
[name] Filter on the IP address (Works as a LIKE operation on the IP address)
1919
[organization-id] The organization ID the IPs are reserved in
2020
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | pl-waw-1)
2121

docs/commands/instance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ scw instance ip get 11111111-1111-1111-1111-111111111111 zone=fr-par-1
456456

457457
Get an IP using directly the given IP address
458458
```
459-
scw instance ip get
459+
scw instance ip get 51.15.253.183
460460
```
461461

462462

@@ -477,9 +477,9 @@ scw instance ip list [arg=value ...]
477477

478478
| Name | | Description |
479479
|------|---|-------------|
480-
| name | | Filter on the IP address (Works as a LIKE operation on the IP address) |
481480
| project-id | | The project ID the IPs are reserved in |
482481
| tags.{index} | | Filter IPs with these exact tags (to filter with several tags, use commas to separate them) |
482+
| name | | Filter on the IP address (Works as a LIKE operation on the IP address) |
483483
| organization-id | | The organization ID the IPs are reserved in |
484484
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |
485485

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.20220707130308-7ec0786bddf2
20+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220707154924-556b07217bb3
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.20220707130308-7ec0786bddf2 h1:whbV5sKu3tYwN11SGjH1jGQb2RxB4gCCeL9KRKfPwmg=
61-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220707130308-7ec0786bddf2/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
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=
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/instance/v1/instance_cli.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,22 +2329,22 @@ func instanceIPList() *core.Command {
23292329
ArgsType: reflect.TypeOf(instance.ListIPsRequest{}),
23302330
ArgSpecs: core.ArgSpecs{
23312331
{
2332-
Name: "name",
2333-
Short: `Filter on the IP address (Works as a LIKE operation on the IP address)`,
2332+
Name: "project",
2333+
Short: `The project ID the IPs are reserved in`,
23342334
Required: false,
23352335
Deprecated: false,
23362336
Positional: false,
23372337
},
23382338
{
2339-
Name: "project",
2340-
Short: `The project ID the IPs are reserved in`,
2339+
Name: "tags.{index}",
2340+
Short: `Filter IPs with these exact tags (to filter with several tags, use commas to separate them)`,
23412341
Required: false,
23422342
Deprecated: false,
23432343
Positional: false,
23442344
},
23452345
{
2346-
Name: "tags.{index}",
2347-
Short: `Filter IPs with these exact tags (to filter with several tags, use commas to separate them)`,
2346+
Name: "name",
2347+
Short: `Filter on the IP address (Works as a LIKE operation on the IP address)`,
23482348
Required: false,
23492349
Deprecated: false,
23502350
Positional: false,
@@ -2503,7 +2503,7 @@ func instanceIPGet() *core.Command {
25032503
},
25042504
{
25052505
Short: "Get an IP using directly the given IP address",
2506-
ArgsJSON: `null`,
2506+
ArgsJSON: `{"ip":"51.15.253.183"}`,
25072507
},
25082508
},
25092509
}

0 commit comments

Comments
 (0)