Skip to content

fix(apple_silicon): update positionnal and required argument UpdateServerRequest #4410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Update the parameters of an existing Apple silicon server, specified by its server ID.

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

ARGS:
server-id UUID of the server you want to update
name Updated name for your server
[name] Updated name for your server
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
[enable-vpc] Activate or deactivate Private Network support for this server
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
Expand Down
4 changes: 2 additions & 2 deletions docs/commands/apple-silicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Update the parameters of an existing Apple silicon server, specified by its serv
**Usage:**

```
scw apple-silicon server update <name ...> [arg=value ...]
scw apple-silicon server update <server-id ...> [arg=value ...]
```


Expand All @@ -237,7 +237,7 @@ scw apple-silicon server update <name ...> [arg=value ...]
| Name | | Description |
|------|---|-------------|
| server-id | Required | UUID of the server you want to update |
| name | Required | Updated name for your server |
| name | | Updated name for your server |
| schedule-deletion | | Specify whether the server should be flagged for automatic deletion |
| enable-vpc | | Activate or deactivate Private Network support for this server |
| 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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,14 @@ func appleSiliconServerUpdate() *core.Command {
Short: `UUID of the server you want to update`,
Required: true,
Deprecated: false,
Positional: false,
Positional: true,
},
{
Name: "name",
Short: `Updated name for your server`,
Required: true,
Required: false,
Deprecated: false,
Positional: true,
Positional: false,
},
{
Name: "schedule-deletion",
Expand Down
Loading