diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden index c91594b6b6..b523f7f2e0 100644 --- a/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden @@ -6,18 +6,19 @@ USAGE: scw apple-silicon server create [arg=value ...] ARGS: - [name=] Create a server with this given name - [project-id] Project ID to use. If none is passed the default project ID will be used - [type] Create a server of the given type - [os-id] Create a server with the given os_id - [enable-vpc] Activate the Private Network feature for this server - [commitment-type] Activate commitment for this server (duration_24h | renewed_monthly | none) - [public-bandwidth-bps] Public bandwidth to configure for this server. Expressed in bits per second. - [runner-configuration.name] - [runner-configuration.url] - [runner-configuration.token] - [runner-configuration.provider] (unknown_provider | github | gitlab) - [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3) + [name=] Create a server with this given name + [project-id] Project ID to use. If none is passed the default project ID will be used + [type] Create a server of the given type + [os-id] Create a server with the given os_id + [enable-vpc] Activate the Private Network feature for this server + [commitment-type] Activate commitment for this server (duration_24h | renewed_monthly | none) + [public-bandwidth-bps] Public bandwidth to configure for this server. Expressed in bits per second. + [runner-configuration.name] + [runner-configuration.url] + [runner-configuration.token] + [runner-configuration.provider] (unknown_provider | github | gitlab) + [applied-runner-configurations.runner-configuration-ids.{index}] + [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3) FLAGS: -h, --help help for create diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden index da25d2b0e9..01014aa968 100644 --- a/cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden @@ -6,13 +6,14 @@ USAGE: scw apple-silicon server update [arg=value ...] ARGS: - server-id UUID of the server you want to update - [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 - [commitment-type.commitment-type] (duration_24h | renewed_monthly | none) - [public-bandwidth-bps] Public bandwidth configured for this server - [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3) + server-id UUID of the server you want to update + [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 + [commitment-type.commitment-type] (duration_24h | renewed_monthly | none) + [public-bandwidth-bps] Public bandwidth configured for this server + [applied-runner-configurations.runner-configuration-ids.{index}] + [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3) FLAGS: -h, --help help for update diff --git a/docs/commands/apple-silicon.md b/docs/commands/apple-silicon.md index a091df9b24..3e5127754d 100644 --- a/docs/commands/apple-silicon.md +++ b/docs/commands/apple-silicon.md @@ -201,6 +201,7 @@ scw apple-silicon server create [arg=value ...] | runner-configuration.url | | | | runner-configuration.token | | | | runner-configuration.provider | One of: `unknown_provider`, `github`, `gitlab` | | +| applied-runner-configurations.runner-configuration-ids.{index} | | | | zone | Default: `fr-par-1`
One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config | @@ -352,6 +353,7 @@ scw apple-silicon server update [arg=value ...] | enable-vpc | | Activate or deactivate Private Network support for this server | | commitment-type.commitment-type | One of: `duration_24h`, `renewed_monthly`, `none` | | | public-bandwidth-bps | | Public bandwidth configured for this server | +| applied-runner-configurations.runner-configuration-ids.{index} | | | | zone | Default: `fr-par-1`
One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config | diff --git a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go index 39eb82d746..15cfde154b 100644 --- a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go +++ b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go @@ -232,6 +232,12 @@ func appleSiliconServerCreate() *core.Command { "gitlab", }, }, + { + Name: "applied-runner-configurations.runner-configuration-ids.{index}", + Required: false, + Deprecated: false, + Positional: false, + }, core.ZoneArgSpec(scw.ZoneFrPar3), }, Run: func(ctx context.Context, args any) (i any, e error) { @@ -470,6 +476,12 @@ func appleSiliconServerUpdate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "applied-runner-configurations.runner-configuration-ids.{index}", + Required: false, + Deprecated: false, + Positional: false, + }, core.ZoneArgSpec(scw.ZoneFrPar3), }, Run: func(ctx context.Context, args any) (i any, e error) {