Skip to content

Commit b7f801a

Browse files
docs: add documentation strings (#2336)
Co-authored-by: Rémy Léone <[email protected]>
1 parent e5cef4c commit b7f801a

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ ARGS:
1818
[description] Description associated to the server, max 255 characters
1919
[type] Server commercial type
2020
[tags.{index}] Tags to associate to the server
21-
[install.os-id]
22-
[install.hostname]
23-
[install.ssh-key-ids.{index}]
24-
[install.user]
25-
[install.password]
26-
[install.service-user]
27-
[install.service-password]
21+
[install.os-id] ID of the OS to install on the server
22+
[install.hostname] Hostname of the server
23+
[install.ssh-key-ids.{index}] SSH key IDs authorized on the server
24+
[install.user] User used for the installation
25+
[install.password] Password used for the installation
26+
[install.service-user] User used for the service to install
27+
[install.service-password] Password used for the service to install
2828
[option-ids.{index}] IDs of options to enable on server
2929
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
3030
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)

docs/commands/baremetal.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ scw baremetal server create [arg=value ...]
177177
| description | | Description associated to the server, max 255 characters |
178178
| type | | Server commercial type |
179179
| tags.{index} | | Tags to associate to the server |
180-
| install.os-id | | |
181-
| install.hostname | | |
182-
| install.ssh-key-ids.{index} | | |
183-
| install.user | | |
184-
| install.password | | |
185-
| install.service-user | | |
186-
| install.service-password | | |
180+
| install.os-id | | ID of the OS to install on the server |
181+
| install.hostname | | Hostname of the server |
182+
| install.ssh-key-ids.{index} | | SSH key IDs authorized on the server |
183+
| install.user | | User used for the installation |
184+
| install.password | | Password used for the installation |
185+
| install.service-user | | User used for the service to install |
186+
| install.service-password | | Password used for the service to install |
187187
| option-ids.{index} | | IDs of options to enable on server |
188188
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
189189
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1` | Zone to target. If none is passed will use default zone from the config |

internal/namespaces/baremetal/v1/baremetal_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,42 +239,49 @@ func baremetalServerCreate() *core.Command {
239239
},
240240
{
241241
Name: "install.os-id",
242+
Short: `ID of the OS to install on the server`,
242243
Required: false,
243244
Deprecated: false,
244245
Positional: false,
245246
},
246247
{
247248
Name: "install.hostname",
249+
Short: `Hostname of the server`,
248250
Required: false,
249251
Deprecated: false,
250252
Positional: false,
251253
},
252254
{
253255
Name: "install.ssh-key-ids.{index}",
256+
Short: `SSH key IDs authorized on the server`,
254257
Required: false,
255258
Deprecated: false,
256259
Positional: false,
257260
},
258261
{
259262
Name: "install.user",
263+
Short: `User used for the installation`,
260264
Required: false,
261265
Deprecated: false,
262266
Positional: false,
263267
},
264268
{
265269
Name: "install.password",
270+
Short: `Password used for the installation`,
266271
Required: false,
267272
Deprecated: false,
268273
Positional: false,
269274
},
270275
{
271276
Name: "install.service-user",
277+
Short: `User used for the service to install`,
272278
Required: false,
273279
Deprecated: false,
274280
Positional: false,
275281
},
276282
{
277283
Name: "install.service-password",
284+
Short: `Password used for the service to install`,
278285
Required: false,
279286
Deprecated: false,
280287
Positional: false,

0 commit comments

Comments
 (0)