From 9e46b52eef74d6b1d0524ac63078003a8cc9cf1a Mon Sep 17 00:00:00 2001 From: Jonathan Remy Date: Fri, 17 Oct 2025 14:48:29 +0200 Subject: [PATCH] feat(apple-silicon): update generated API --- ...pple-silicon-server-reinstall-usage.golden | 10 ++----- docs/commands/apple-silicon.md | 4 --- .../applesilicon/v1alpha1/applesilicon_cli.go | 29 ------------------- 3 files changed, 3 insertions(+), 40 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden index 6293f4a421..5ed92eba80 100644 --- a/cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden @@ -6,13 +6,9 @@ USAGE: scw apple-silicon server reinstall [arg=value ...] ARGS: - server-id UUID of the server you want to reinstall - [os-id] Reinstall the server with the OS corresponding to the os_id - [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) + server-id UUID of the server you want to reinstall + [os-id] Reinstall the server with the OS corresponding to the os_id + [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 reinstall diff --git a/docs/commands/apple-silicon.md b/docs/commands/apple-silicon.md index b9b00eaf97..d4e732fb99 100644 --- a/docs/commands/apple-silicon.md +++ b/docs/commands/apple-silicon.md @@ -304,10 +304,6 @@ scw apple-silicon server reinstall [arg=value ...] |------|---|-------------| | server-id | Required | UUID of the server you want to reinstall | | os-id | | Reinstall the server with the OS corresponding to the os_id | -| runner-configuration.name | | | -| runner-configuration.url | | | -| runner-configuration.token | | | -| runner-configuration.provider | One of: `unknown_provider`, `github`, `gitlab` | | | 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 322340301b..0ef4165640 100644 --- a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go +++ b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go @@ -574,35 +574,6 @@ func appleSiliconServerReinstall() *core.Command { Deprecated: false, Positional: false, }, - { - Name: "runner-configuration.name", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "runner-configuration.url", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "runner-configuration.token", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "runner-configuration.provider", - Required: false, - Deprecated: false, - Positional: false, - EnumValues: []string{ - "unknown_provider", - "github", - "gitlab", - }, - }, core.ZoneArgSpec(scw.ZoneFrPar3), }, Run: func(ctx context.Context, args any) (i any, e error) {