Skip to content

Commit 1942024

Browse files
feat(apple-silicon): add support for zone (#2303)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent a14c349 commit 1942024

13 files changed

+55
-13
lines changed

cmd/scw/testdata/test-all-usage-apple-silicon-os-get-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ USAGE:
66
scw apple-silicon os get <os-id ...> [arg=value ...]
77

88
ARGS:
9-
os-id UUID of the OS you want to get
9+
os-id UUID of the OS you want to get
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1011

1112
FLAGS:
1213
-h, --help help for get

cmd/scw/testdata/test-all-usage-apple-silicon-os-list-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ USAGE:
66
scw apple-silicon os list [arg=value ...]
77

88
ARGS:
9-
[server-type] List of compatible server type
10-
[name] Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12")
9+
[server-type] List of compatible server type
10+
[name] Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12")
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1112

1213
FLAGS:
1314
-h, --help help for list

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
[name=<generated>] Create a server with this given name
1010
[project-id] Project ID to use. If none is passed the default project ID will be used
1111
[type=M1-M] Create a server of the given type
12+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1213

1314
FLAGS:
1415
-h, --help help for create

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ USAGE:
66
scw apple-silicon server delete <server-id ...> [arg=value ...]
77

88
ARGS:
9-
server-id UUID of the server you want to delete
9+
server-id UUID of the server you want to delete
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1011

1112
FLAGS:
1213
-h, --help help for delete

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ USAGE:
66
scw apple-silicon server get <server-id ...> [arg=value ...]
77

88
ARGS:
9-
server-id UUID of the server you want to get
9+
server-id UUID of the server you want to get
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1011

1112
FLAGS:
1213
-h, --help help for get

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
[order-by] The sort order of the returned servers (created_at_asc | created_at_desc)
1010
[project-id] List only servers of this project ID
1111
[organization-id] List only servers of this organization ID
12+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1213

1314
FLAGS:
1415
-h, --help help for list

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ USAGE:
66
scw apple-silicon server reboot <server-id ...> [arg=value ...]
77

88
ARGS:
9-
server-id UUID of the server you want to reboot
9+
server-id UUID of the server you want to reboot
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1011

1112
FLAGS:
1213
-h, --help help for reboot

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ USAGE:
66
scw apple-silicon server reinstall <server-id ...> [arg=value ...]
77

88
ARGS:
9-
server-id UUID of the server you want to reinstall
9+
server-id UUID of the server you want to reinstall
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1011

1112
FLAGS:
1213
-h, --help help for reinstall

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ USAGE:
66
scw apple-silicon server-type get <server-type ...> [arg=value ...]
77

88
ARGS:
9-
server-type Server type identifier
9+
server-type Server type identifier
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1011

1112
FLAGS:
1213
-h, --help help for get

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
List all server types technical details.
44

55
USAGE:
6-
scw apple-silicon server-type list
6+
scw apple-silicon server-type list [arg=value ...]
7+
8+
ARGS:
9+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
710

811
FLAGS:
912
-h, --help help for list

0 commit comments

Comments
 (0)