Skip to content

Commit ea72528

Browse files
fix(apple_silicon): update positionnal and required argument UpdateServerRequest (scaleway#4410)
Co-authored-by: Laure-di <[email protected]>
1 parent 897b938 commit ea72528

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Update the parameters of an existing Apple silicon server, specified by its server ID.
44

55
USAGE:
6-
scw apple-silicon server update <name ...> [arg=value ...]
6+
scw apple-silicon server update <server-id ...> [arg=value ...]
77

88
ARGS:
99
server-id UUID of the server you want to update
10-
name Updated name for your server
10+
[name] Updated name for your server
1111
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
1212
[enable-vpc] Activate or deactivate Private Network support for this server
1313
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)

docs/commands/apple-silicon.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Update the parameters of an existing Apple silicon server, specified by its serv
228228
**Usage:**
229229

230230
```
231-
scw apple-silicon server update <name ...> [arg=value ...]
231+
scw apple-silicon server update <server-id ...> [arg=value ...]
232232
```
233233

234234

@@ -237,7 +237,7 @@ scw apple-silicon server update <name ...> [arg=value ...]
237237
| Name | | Description |
238238
|------|---|-------------|
239239
| server-id | Required | UUID of the server you want to update |
240-
| name | Required | Updated name for your server |
240+
| name | | Updated name for your server |
241241
| schedule-deletion | | Specify whether the server should be flagged for automatic deletion |
242242
| enable-vpc | | Activate or deactivate Private Network support for this server |
243243
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |

internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,14 @@ func appleSiliconServerUpdate() *core.Command {
352352
Short: `UUID of the server you want to update`,
353353
Required: true,
354354
Deprecated: false,
355-
Positional: false,
355+
Positional: true,
356356
},
357357
{
358358
Name: "name",
359359
Short: `Updated name for your server`,
360-
Required: true,
360+
Required: false,
361361
Deprecated: false,
362-
Positional: true,
362+
Positional: false,
363363
},
364364
{
365365
Name: "schedule-deletion",

0 commit comments

Comments
 (0)