Skip to content

Commit ed67a9f

Browse files
feat: update generated cli (#2213)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 28382ab commit ed67a9f

10 files changed

+23
-20
lines changed

cmd/scw/testdata/test-all-usage-baremetal-bmc-start-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-
Unvailable - Start BMC (Baseboard Management Controller) access associated with the given ID.
3+
Start BMC (Baseboard Management Controller) access associated with the given ID.
44
The BMC (Baseboard Management Controller) access is available one hour after the installation of the server.
55

66
USAGE:

cmd/scw/testdata/test-all-usage-baremetal-bmc-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Unvailable - Baseboard Management Controller (BMC) allows you to remotely access the low-level parameters of your dedicated server.
3+
Baseboard Management Controller (BMC) allows you to remotely access the low-level parameters of your dedicated server.
44
For instance, your KVM-IP management console could be accessed with it.
55

66
USAGE:
77
scw baremetal bmc <command>
88

99
AVAILABLE COMMANDS:
1010
get Get BMC (Baseboard Management Controller) access for a given elastic metal server
11-
start Unvailable - Start BMC (Baseboard Management Controller) access for a given elastic metal server
11+
start Start BMC (Baseboard Management Controller) access for a given elastic metal server
1212
stop Stop BMC (Baseboard Management Controller) access for a given elastic metal server
1313

1414
FLAGS:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USAGE:
66
scw baremetal <command>
77

88
AVAILABLE COMMANDS:
9-
bmc Unvailable - Baseboard Management Controller (BMC) management commands
9+
bmc Baseboard Management Controller (BMC) management commands
1010
os Operating System (OS) management commands
1111
server Server management commands
1212

docs/commands/baremetal.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Documentation for `scw baremetal`
33
Elastic metal API
44

5-
- [Unvailable - Baseboard Management Controller (BMC) management commands](#unvailable---baseboard-management-controller-(bmc)-management-commands)
5+
- [Baseboard Management Controller (BMC) management commands](#baseboard-management-controller-(bmc)-management-commands)
66
- [Get BMC (Baseboard Management Controller) access for a given elastic metal server](#get-bmc-(baseboard-management-controller)-access-for-a-given-elastic-metal-server)
7-
- [Unvailable - Start BMC (Baseboard Management Controller) access for a given elastic metal server](#unvailable---start-bmc-(baseboard-management-controller)-access-for-a-given-elastic-metal-server)
7+
- [Start BMC (Baseboard Management Controller) access for a given elastic metal server](#start-bmc-(baseboard-management-controller)-access-for-a-given-elastic-metal-server)
88
- [Stop BMC (Baseboard Management Controller) access for a given elastic metal server](#stop-bmc-(baseboard-management-controller)-access-for-a-given-elastic-metal-server)
99
- [Operating System (OS) management commands](#operating-system-(os)-management-commands)
1010
- [Get an OS with a given ID](#get-an-os-with-a-given-id)
@@ -22,9 +22,9 @@ Elastic metal API
2222
- [Wait for a server to reach a stable state (delivery and installation)](#wait-for-a-server-to-reach-a-stable-state-(delivery-and-installation))
2323

2424

25-
## Unvailable - Baseboard Management Controller (BMC) management commands
25+
## Baseboard Management Controller (BMC) management commands
2626

27-
Unvailable - Baseboard Management Controller (BMC) allows you to remotely access the low-level parameters of your dedicated server.
27+
Baseboard Management Controller (BMC) allows you to remotely access the low-level parameters of your dedicated server.
2828
For instance, your KVM-IP management console could be accessed with it.
2929

3030

@@ -49,9 +49,9 @@ scw baremetal bmc get [arg=value ...]
4949

5050

5151

52-
### Unvailable - Start BMC (Baseboard Management Controller) access for a given elastic metal server
52+
### Start BMC (Baseboard Management Controller) access for a given elastic metal server
5353

54-
Unvailable - Start BMC (Baseboard Management Controller) access associated with the given ID.
54+
Start BMC (Baseboard Management Controller) access associated with the given ID.
5555
The BMC (Baseboard Management Controller) access is available one hour after the installation of the server.
5656

5757

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.20220223135819-4133d5122603
20+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220325110112-a8da26092f72
2121
github.com/spf13/cobra v1.4.0
2222
github.com/spf13/pflag v1.0.5
2323
github.com/stretchr/testify v1.7.1

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.20220223135819-4133d5122603 h1:ldNbElGuvDbei0cJVYmrYuUmQ4c7d1XCpfr9U0k3lGw=
61-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220223135819-4133d5122603/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
60+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220325110112-a8da26092f72 h1:pWmhgGVHNImWrErdC7ttqh2TH2ITnucGn5HngFXegxg=
61+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220325110112-a8da26092f72/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.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=

internal/namespaces/baremetal/v1/baremetal_cli.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ func baremetalOs() *core.Command {
6767

6868
func baremetalBmc() *core.Command {
6969
return &core.Command{
70-
Short: `Unvailable - Baseboard Management Controller (BMC) management commands`,
71-
Long: `Unvailable - Baseboard Management Controller (BMC) allows you to remotely access the low-level parameters of your dedicated server.
70+
Short: `Baseboard Management Controller (BMC) management commands`,
71+
Long: `Baseboard Management Controller (BMC) allows you to remotely access the low-level parameters of your dedicated server.
7272
For instance, your KVM-IP management console could be accessed with it.
7373
`,
7474
Namespace: "baremetal",
@@ -623,8 +623,8 @@ func baremetalServerStop() *core.Command {
623623

624624
func baremetalBmcStart() *core.Command {
625625
return &core.Command{
626-
Short: `Unvailable - Start BMC (Baseboard Management Controller) access for a given elastic metal server`,
627-
Long: `Unvailable - Start BMC (Baseboard Management Controller) access associated with the given ID.
626+
Short: `Start BMC (Baseboard Management Controller) access for a given elastic metal server`,
627+
Long: `Start BMC (Baseboard Management Controller) access associated with the given ID.
628628
The BMC (Baseboard Management Controller) access is available one hour after the installation of the server.
629629
`,
630630
Namespace: "baremetal",

internal/namespaces/baremetal/v1/testdata/test-create-server-simple-default.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ PingStatus down
6262
"zone": "nl-ams-1",
6363
"install": null,
6464
"ping_status": "ping_status_down",
65-
"options": null
65+
"options": null,
66+
"rescue_server": null
6667
}

internal/namespaces/baremetal/v1/testdata/test-install-server-simple-all-ssh-keys.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,6 @@ PingStatus down
8787
"service_url": ""
8888
},
8989
"ping_status": "ping_status_down",
90-
"options": null
90+
"options": null,
91+
"rescue_server": null
9192
}

internal/namespaces/baremetal/v1/testdata/test-install-server-simple-with-id.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@ PingStatus down
7979
"service_url": ""
8080
},
8181
"ping_status": "ping_status_down",
82-
"options": null
82+
"options": null,
83+
"rescue_server": null
8384
}

0 commit comments

Comments
 (0)