From b41c8429a43b6cdc20fba81629a0d99e9a2ce635 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 3 Feb 2021 14:27:32 +0000 Subject: [PATCH 1/6] feat: update generated cli --- .../applesilicon/v1alpha1/applesilicon_cli.go | 445 ++++++++++++++++++ internal/namespaces/lb/v1/lb_cli.go | 14 + internal/namespaces/rdb/v1/rdb_cli.go | 18 + 3 files changed, 477 insertions(+) create mode 100644 internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go diff --git a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go new file mode 100644 index 0000000000..51ee266433 --- /dev/null +++ b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go @@ -0,0 +1,445 @@ +// This file was automatically generated. DO NOT EDIT. +// If you have any remark or suggestion do not hesitate to open an issue. + +package apple_silicon + +import ( + "context" + "reflect" + + "github.com/scaleway/scaleway-cli/internal/core" + "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +// always import dependencies +var ( + _ = scw.RegionFrPar +) + +func GetGeneratedCommands() *core.Commands { + return core.NewCommands( + appleSiliconRoot(), + appleSiliconServer(), + appleSiliconOs(), + appleSiliconServerType(), + appleSiliconServerTypeList(), + appleSiliconServerTypeGet(), + appleSiliconServerCreate(), + appleSiliconServerList(), + appleSiliconOsList(), + appleSiliconOsGet(), + appleSiliconServerGet(), + appleSiliconServerUpdate(), + appleSiliconServerDelete(), + appleSiliconServerReboot(), + appleSiliconServerReinstall(), + ) +} +func appleSiliconRoot() *core.Command { + return &core.Command{ + Short: `Apple silicon API`, + Long: `Scaleway Apple silicon M1 as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation). + +These dedicated Mac mini M1s are designed for developing, building, testing, and signing applications for Apple devices, including iPhones, iPads, Mac computers and much more. + +Get set to explore, learn and build on a dedicated Mac mini M1 with more performance and speed than you ever thought possible. + +**Apple silicon as a Service comes with a minimum allocation period of 24 hours**. + +Mac mini and macOS are trademarks of Apple Inc., registered in the U.S. and other countries and regions. +IOS is a trademark or registered trademark of Cisco in the U.S. and other countries and is used by Apple under license. +Scaleway is not affiliated with Apple Inc. +`, + Namespace: "apple-silicon", + } +} + +func appleSiliconServer() *core.Command { + return &core.Command{ + Short: `Apple silicon management commands`, + Long: `Apple silicon management commands`, + Namespace: "apple-silicon", + Resource: "server", + } +} + +func appleSiliconOs() *core.Command { + return &core.Command{ + Short: `OS management commands`, + Long: `OS management commands`, + Namespace: "apple-silicon", + Resource: "os", + } +} + +func appleSiliconServerType() *core.Command { + return &core.Command{ + Short: `Server-Types management commands`, + Long: `Server-Types management commands`, + Namespace: "apple-silicon", + Resource: "server-type", + } +} + +func appleSiliconServerTypeList() *core.Command { + return &core.Command{ + Short: `List server types`, + Long: `List all server types technical details.`, + Namespace: "apple-silicon", + Resource: "server-type", + Verb: "list", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.ListServerTypesRequest{}), + ArgSpecs: core.ArgSpecs{}, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.ListServerTypesRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + return api.ListServerTypes(request) + + }, + } +} + +func appleSiliconServerTypeGet() *core.Command { + return &core.Command{ + Short: `Get a server type`, + Long: `Get a server technical details.`, + Namespace: "apple-silicon", + Resource: "server-type", + Verb: "get", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.GetServerTypeRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "server-type", + Short: `Server type identifier`, + Required: true, + Deprecated: false, + Positional: true, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.GetServerTypeRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + return api.GetServerType(request) + + }, + } +} + +func appleSiliconServerCreate() *core.Command { + return &core.Command{ + Short: `Create a server`, + Long: `Create a server.`, + Namespace: "apple-silicon", + Resource: "server", + Verb: "create", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.CreateServerRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "name", + Short: `Create a server with this given name`, + Required: false, + Deprecated: false, + Positional: false, + }, + core.ProjectIDArgSpec(), + { + Name: "type", + Short: `Create a server of the given type`, + Required: false, + Deprecated: false, + Positional: false, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.CreateServerRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + return api.CreateServer(request) + + }, + } +} + +func appleSiliconServerList() *core.Command { + return &core.Command{ + Short: `List all servers`, + Long: `List all servers.`, + Namespace: "apple-silicon", + Resource: "server", + Verb: "list", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.ListServersRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "order-by", + Short: `The sort order of the returned servers`, + Required: false, + Deprecated: false, + Positional: false, + EnumValues: []string{"created_at_asc", "created_at_desc"}, + }, + { + Name: "project-id", + Short: `List only servers of this project ID`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "organization-id", + Short: `List only servers of this organization ID`, + Required: false, + Deprecated: false, + Positional: false, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.ListServersRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + resp, err := api.ListServers(request, scw.WithAllPages()) + if err != nil { + return nil, err + } + return resp.Servers, nil + + }, + } +} + +func appleSiliconOsList() *core.Command { + return &core.Command{ + Short: `List all Operating System (OS)`, + Long: `List all Operating System (OS).`, + Namespace: "apple-silicon", + Resource: "os", + Verb: "list", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.ListOSRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "server-type", + Short: `List of compatible server type`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "name", + Short: `Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12")`, + Required: false, + Deprecated: false, + Positional: false, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.ListOSRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + resp, err := api.ListOS(request, scw.WithAllPages()) + if err != nil { + return nil, err + } + return resp.Os, nil + + }, + } +} + +func appleSiliconOsGet() *core.Command { + return &core.Command{ + Short: `Get an Operating System (OS)`, + Long: `Get an Operating System (OS).`, + Namespace: "apple-silicon", + Resource: "os", + Verb: "get", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.GetOSRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "os-id", + Short: `UUID of the OS you want to get`, + Required: true, + Deprecated: false, + Positional: true, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.GetOSRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + return api.GetOS(request) + + }, + } +} + +func appleSiliconServerGet() *core.Command { + return &core.Command{ + Short: `Get a server`, + Long: `Get a server.`, + Namespace: "apple-silicon", + Resource: "server", + Verb: "get", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.GetServerRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "server-id", + Short: `UUID of the server you want to get`, + Required: true, + Deprecated: false, + Positional: true, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.GetServerRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + return api.GetServer(request) + + }, + } +} + +func appleSiliconServerUpdate() *core.Command { + return &core.Command{ + Short: `Update a server`, + Long: `Update a server.`, + Namespace: "apple-silicon", + Resource: "server", + Verb: "update", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.UpdateServerRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "server-id", + Short: `UUID of the server you want to update`, + Required: true, + Deprecated: false, + Positional: false, + }, + { + Name: "name", + Short: `Updated name for your server`, + Required: true, + Deprecated: false, + Positional: true, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.UpdateServerRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + return api.UpdateServer(request) + + }, + } +} + +func appleSiliconServerDelete() *core.Command { + return &core.Command{ + Short: `Delete a server`, + Long: `Delete a server.`, + Namespace: "apple-silicon", + Resource: "server", + Verb: "delete", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.DeleteServerRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "server-id", + Short: `UUID of the server you want to delete`, + Required: true, + Deprecated: false, + Positional: true, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.DeleteServerRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + e = api.DeleteServer(request) + if e != nil { + return nil, e + } + return &core.SuccessResult{ + Resource: "server", + Verb: "delete", + }, nil + }, + } +} + +func appleSiliconServerReboot() *core.Command { + return &core.Command{ + Short: `Reboot a server`, + Long: `Reboot a server.`, + Namespace: "apple-silicon", + Resource: "server", + Verb: "reboot", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.RebootServerRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "server-id", + Short: `UUID of the server you want to reboot`, + Required: true, + Deprecated: false, + Positional: true, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.RebootServerRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + return api.RebootServer(request) + + }, + } +} + +func appleSiliconServerReinstall() *core.Command { + return &core.Command{ + Short: `Reinstall a server`, + Long: `Reinstall a server.`, + Namespace: "apple-silicon", + Resource: "server", + Verb: "reinstall", + // Deprecated: false, + ArgsType: reflect.TypeOf(applesilicon.ReinstallServerRequest{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "server-id", + Short: `UUID of the server you want to reinstall`, + Required: true, + Deprecated: false, + Positional: true, + }, + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + request := args.(*applesilicon.ReinstallServerRequest) + + client := core.ExtractClient(ctx) + api := applesilicon.NewAPI(client) + return api.ReinstallServer(request) + + }, + } +} diff --git a/internal/namespaces/lb/v1/lb_cli.go b/internal/namespaces/lb/v1/lb_cli.go index 1bd81aa189..581b7e340d 100644 --- a/internal/namespaces/lb/v1/lb_cli.go +++ b/internal/namespaces/lb/v1/lb_cli.go @@ -790,6 +790,13 @@ func lbBackendCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "health-check.check-send-proxy", + Short: `It defines whether the healthcheck should be done considering the proxy protocol`, + Required: false, + Deprecated: false, + Positional: false, + }, { Name: "lb-id", Short: `Load balancer ID`, @@ -1237,6 +1244,13 @@ func lbBackendUpdateHealthcheck() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "check-send-proxy", + Short: `It defines whether the healthcheck should be done considering the proxy protocol`, + Required: false, + Deprecated: false, + Positional: false, + }, core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { diff --git a/internal/namespaces/rdb/v1/rdb_cli.go b/internal/namespaces/rdb/v1/rdb_cli.go index fad9691132..486a412b47 100644 --- a/internal/namespaces/rdb/v1/rdb_cli.go +++ b/internal/namespaces/rdb/v1/rdb_cli.go @@ -29,6 +29,7 @@ func GetGeneratedCommands() *core.Commands { rdbDatabase(), rdbNodeType(), rdbLog(), + rdbSnapshot(), rdbEngineList(), rdbNodeTypeList(), rdbBackupList(), @@ -160,6 +161,16 @@ func rdbLog() *core.Command { } } +func rdbSnapshot() *core.Command { + return &core.Command{ + Short: `Block snapshot management`, + Long: `Create, restore and manage block snapshot +`, + Namespace: "rdb", + Resource: "snapshot", + } +} + func rdbEngineList() *core.Command { return &core.Command{ Short: `List available database engines`, @@ -545,6 +556,13 @@ func rdbInstanceUpgrade() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "volume-size", + Short: `Increase your block storage volume size`, + Required: false, + Deprecated: false, + Positional: false, + }, core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { From 6b9002268a7bc2b8eb1c78f91b7772d6e61afa22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 3 Feb 2021 16:04:08 +0100 Subject: [PATCH 2/6] Fix --- ...ll-usage-apple-silicon-os-get-usage.golden | 18 +++++++++++ ...l-usage-apple-silicon-os-list-usage.golden | 19 +++++++++++ ...st-all-usage-apple-silicon-os-usage.golden | 21 ++++++++++++ ...e-apple-silicon-server-create-usage.golden | 20 ++++++++++++ ...e-apple-silicon-server-delete-usage.golden | 18 +++++++++++ ...sage-apple-silicon-server-get-usage.golden | 18 +++++++++++ ...age-apple-silicon-server-list-usage.golden | 20 ++++++++++++ ...e-apple-silicon-server-reboot-usage.golden | 18 +++++++++++ ...pple-silicon-server-reinstall-usage.golden | 18 +++++++++++ ...apple-silicon-server-type-get-usage.golden | 18 +++++++++++ ...pple-silicon-server-type-list-usage.golden | 15 +++++++++ ...age-apple-silicon-server-type-usage.golden | 21 ++++++++++++ ...e-apple-silicon-server-update-usage.golden | 19 +++++++++++ ...ll-usage-apple-silicon-server-usage.golden | 26 +++++++++++++++ .../test-all-usage-apple-silicon-usage.golden | 32 +++++++++++++++++++ go.mod | 2 +- go.sum | 2 ++ .../applesilicon/v1alpha1/applesilicon_cli.go | 4 +-- .../applesilicon/v1alpha1/custom.go | 15 +++++++++ .../applesilicon/v1alpha1/custom_server.go | 17 ++++++++++ internal/namespaces/get_commands.go | 2 ++ internal/namespaces/rdb/v1/rdb_cli.go | 18 ----------- 22 files changed, 340 insertions(+), 21 deletions(-) create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-os-get-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-os-list-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-os-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-delete-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-get-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-list-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-reboot-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-type-get-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-type-list-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-type-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-server-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-apple-silicon-usage.golden create mode 100644 internal/namespaces/applesilicon/v1alpha1/custom.go create mode 100644 internal/namespaces/applesilicon/v1alpha1/custom_server.go diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-os-get-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-os-get-usage.golden new file mode 100644 index 0000000000..251286cb17 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-os-get-usage.golden @@ -0,0 +1,18 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Get an Operating System (OS). + +USAGE: + scw apple-silicon os get [arg=value ...] + +ARGS: + os-id UUID of the OS you want to get + +FLAGS: + -h, --help help for get + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-os-list-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-os-list-usage.golden new file mode 100644 index 0000000000..cfad09ec79 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-os-list-usage.golden @@ -0,0 +1,19 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +List all Operating System (OS). + +USAGE: + scw apple-silicon os list [arg=value ...] + +ARGS: + [server-type] List of compatible server type + [name] Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12") + +FLAGS: + -h, --help help for list + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-os-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-os-usage.golden new file mode 100644 index 0000000000..7846145e65 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-os-usage.golden @@ -0,0 +1,21 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +OS management commands + +USAGE: + scw apple-silicon os + +AVAILABLE COMMANDS: + get Get an Operating System (OS) + list List all Operating System (OS) + +FLAGS: + -h, --help help for os + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use + +Use "scw apple-silicon os [command] --help" for more information about a command. 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 new file mode 100644 index 0000000000..4b003e4849 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden @@ -0,0 +1,20 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Create a server. + +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 + +FLAGS: + -h, --help help for create + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-delete-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-delete-usage.golden new file mode 100644 index 0000000000..2a87fa94ed --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-delete-usage.golden @@ -0,0 +1,18 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Delete a server. + +USAGE: + scw apple-silicon server delete [arg=value ...] + +ARGS: + server-id UUID of the server you want to delete + +FLAGS: + -h, --help help for delete + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-get-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-get-usage.golden new file mode 100644 index 0000000000..05eefce021 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-get-usage.golden @@ -0,0 +1,18 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Get a server. + +USAGE: + scw apple-silicon server get [arg=value ...] + +ARGS: + server-id UUID of the server you want to get + +FLAGS: + -h, --help help for get + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-list-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-list-usage.golden new file mode 100644 index 0000000000..d21f03f75c --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-list-usage.golden @@ -0,0 +1,20 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +List all servers. + +USAGE: + scw apple-silicon server list [arg=value ...] + +ARGS: + [order-by] The sort order of the returned servers (created_at_asc | created_at_desc) + [project-id] List only servers of this project ID + [organization-id] List only servers of this organization ID + +FLAGS: + -h, --help help for list + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-reboot-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-reboot-usage.golden new file mode 100644 index 0000000000..ba7bdbb6a3 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-reboot-usage.golden @@ -0,0 +1,18 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Reboot a server. + +USAGE: + scw apple-silicon server reboot [arg=value ...] + +ARGS: + server-id UUID of the server you want to reboot + +FLAGS: + -h, --help help for reboot + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use 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 new file mode 100644 index 0000000000..4f41ecd4f8 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden @@ -0,0 +1,18 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Reinstall a server. + +USAGE: + scw apple-silicon server reinstall [arg=value ...] + +ARGS: + server-id UUID of the server you want to reinstall + +FLAGS: + -h, --help help for reinstall + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-get-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-get-usage.golden new file mode 100644 index 0000000000..f6ffcca2b5 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-get-usage.golden @@ -0,0 +1,18 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Get a server technical details. + +USAGE: + scw apple-silicon server-type get [arg=value ...] + +ARGS: + server-type Server type identifier + +FLAGS: + -h, --help help for get + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-list-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-list-usage.golden new file mode 100644 index 0000000000..548e3b698e --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-list-usage.golden @@ -0,0 +1,15 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +List all server types technical details. + +USAGE: + scw apple-silicon server-type list + +FLAGS: + -h, --help help for list + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-usage.golden new file mode 100644 index 0000000000..fab5806418 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-type-usage.golden @@ -0,0 +1,21 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Server-Types management commands + +USAGE: + scw apple-silicon server-type + +AVAILABLE COMMANDS: + get Get a server type + list List server types + +FLAGS: + -h, --help help for server-type + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use + +Use "scw apple-silicon server-type [command] --help" for more information about a command. 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 new file mode 100644 index 0000000000..120a13f385 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden @@ -0,0 +1,19 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Update a server. + +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 + +FLAGS: + -h, --help help for update + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-usage.golden new file mode 100644 index 0000000000..9fbb52a946 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-usage.golden @@ -0,0 +1,26 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Apple silicon management commands + +USAGE: + scw apple-silicon server + +AVAILABLE COMMANDS: + create Create a server + delete Delete a server + get Get a server + list List all servers + reboot Reboot a server + reinstall Reinstall a server + update Update a server + +FLAGS: + -h, --help help for server + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use + +Use "scw apple-silicon server [command] --help" for more information about a command. diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-usage.golden new file mode 100644 index 0000000000..7a2fc8ac4e --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-usage.golden @@ -0,0 +1,32 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Scaleway Apple silicon M1 as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation). + +These dedicated Mac mini M1s are designed for developing, building, testing, and signing applications for Apple devices, including iPhones, iPads, Mac computers and much more. + +Get set to explore, learn and build on a dedicated Mac mini M1 with more performance and speed than you ever thought possible. + +**Apple silicon as a Service comes with a minimum allocation period of 24 hours**. + +Mac mini and macOS are trademarks of Apple Inc., registered in the U.S. and other countries and regions. +IOS is a trademark or registered trademark of Cisco in the U.S. and other countries and is used by Apple under license. +Scaleway is not affiliated with Apple Inc. + +USAGE: + scw apple-silicon + +AVAILABLE COMMANDS: + os OS management commands + server Apple silicon management commands + server-type Server-Types management commands + +FLAGS: + -h, --help help for apple-silicon + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use + +Use "scw apple-silicon [command] --help" for more information about a command. diff --git a/go.mod b/go.mod index 86327d2c11..6b6a93d09e 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/mattn/go-colorable v0.1.7 github.com/mattn/go-isatty v0.0.12 github.com/pkg/errors v0.9.1 // indirect - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210127161313-bd30bebeac4f + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210202173413-337fb17121a1 github.com/sergi/go-diff v1.1.0 // indirect github.com/spf13/cobra v1.0.0 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index 15a924ec9d..e6cd1c378e 100644 --- a/go.sum +++ b/go.sum @@ -120,6 +120,8 @@ github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6So github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210127161313-bd30bebeac4f h1:WSnaD0/cvbKJgSTYbjAPf4RJXVvNNDAwVm+W8wEmnGE= github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210127161313-bd30bebeac4f/go.mod h1:CJJ5VAbozOl0yEw7nHB9+7BXTJbIn6h7W+f6Gau5IP8= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210202173413-337fb17121a1 h1:vytHInJpH5I4FheLyFW2wu5LmtcQOJhetm3+jaVGp74= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210202173413-337fb17121a1/go.mod h1:CJJ5VAbozOl0yEw7nHB9+7BXTJbIn6h7W+f6Gau5IP8= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= diff --git a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go index 51ee266433..4004d0de30 100644 --- a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go +++ b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go @@ -1,14 +1,14 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -package apple_silicon +package applesilicon import ( "context" "reflect" "github.com/scaleway/scaleway-cli/internal/core" - "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1" + applesilicon "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1" "github.com/scaleway/scaleway-sdk-go/scw" ) diff --git a/internal/namespaces/applesilicon/v1alpha1/custom.go b/internal/namespaces/applesilicon/v1alpha1/custom.go new file mode 100644 index 0000000000..69739ba312 --- /dev/null +++ b/internal/namespaces/applesilicon/v1alpha1/custom.go @@ -0,0 +1,15 @@ +package applesilicon + +import ( + "github.com/scaleway/scaleway-cli/internal/core" + "github.com/scaleway/scaleway-cli/internal/human" + applesilicon "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1" +) + +func GetCommands() *core.Commands { + cmds := GetGeneratedCommands() + + human.RegisterMarshalerFunc(applesilicon.ServerStatus(""), human.EnumMarshalFunc(serverStatusMarshalSpecs)) + + return cmds +} diff --git a/internal/namespaces/applesilicon/v1alpha1/custom_server.go b/internal/namespaces/applesilicon/v1alpha1/custom_server.go new file mode 100644 index 0000000000..5587406b17 --- /dev/null +++ b/internal/namespaces/applesilicon/v1alpha1/custom_server.go @@ -0,0 +1,17 @@ +package applesilicon + +import ( + "github.com/fatih/color" + "github.com/scaleway/scaleway-cli/internal/human" + applesilicon "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1" +) + +var ( + serverStatusMarshalSpecs = human.EnumMarshalSpecs{ + applesilicon.ServerStatusError: &human.EnumMarshalSpec{Attribute: color.FgRed, Value: "error"}, + applesilicon.ServerStatusReady: &human.EnumMarshalSpec{Attribute: color.FgGreen, Value: "ready"}, + applesilicon.ServerStatusRebooting: &human.EnumMarshalSpec{Attribute: color.FgBlue, Value: "rebooting"}, + applesilicon.ServerStatusStarting: &human.EnumMarshalSpec{Attribute: color.FgBlue, Value: "starting"}, + applesilicon.ServerStatusUpdating: &human.EnumMarshalSpec{Attribute: color.FgBlue, Value: "updating"}, + } +) diff --git a/internal/namespaces/get_commands.go b/internal/namespaces/get_commands.go index 73a4a0d24e..ce408e8168 100644 --- a/internal/namespaces/get_commands.go +++ b/internal/namespaces/get_commands.go @@ -3,6 +3,7 @@ package namespaces import ( "github.com/scaleway/scaleway-cli/internal/core" account "github.com/scaleway/scaleway-cli/internal/namespaces/account/v2alpha1" + apple_silicon "github.com/scaleway/scaleway-cli/internal/namespaces/applesilicon/v1alpha1" autocompleteNamespace "github.com/scaleway/scaleway-cli/internal/namespaces/autocomplete" "github.com/scaleway/scaleway-cli/internal/namespaces/baremetal/v1" configNamespace "github.com/scaleway/scaleway-cli/internal/namespaces/config" @@ -47,5 +48,6 @@ func GetCommands() *core.Commands { commands.Merge(iot.GetCommands()) commands.Merge(help.GetCommands()) commands.Merge(vpc.GetCommands()) + commands.Merge(apple_silicon.GetCommands()) return commands } diff --git a/internal/namespaces/rdb/v1/rdb_cli.go b/internal/namespaces/rdb/v1/rdb_cli.go index 486a412b47..fad9691132 100644 --- a/internal/namespaces/rdb/v1/rdb_cli.go +++ b/internal/namespaces/rdb/v1/rdb_cli.go @@ -29,7 +29,6 @@ func GetGeneratedCommands() *core.Commands { rdbDatabase(), rdbNodeType(), rdbLog(), - rdbSnapshot(), rdbEngineList(), rdbNodeTypeList(), rdbBackupList(), @@ -161,16 +160,6 @@ func rdbLog() *core.Command { } } -func rdbSnapshot() *core.Command { - return &core.Command{ - Short: `Block snapshot management`, - Long: `Create, restore and manage block snapshot -`, - Namespace: "rdb", - Resource: "snapshot", - } -} - func rdbEngineList() *core.Command { return &core.Command{ Short: `List available database engines`, @@ -556,13 +545,6 @@ func rdbInstanceUpgrade() *core.Command { Deprecated: false, Positional: false, }, - { - Name: "volume-size", - Short: `Increase your block storage volume size`, - Required: false, - Deprecated: false, - Positional: false, - }, core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { From cda0d49c72dbc57e04259b342dae07ff61ef05f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 3 Feb 2021 16:08:29 +0100 Subject: [PATCH 3/6] Fix --- go.sum | 2 -- 1 file changed, 2 deletions(-) diff --git a/go.sum b/go.sum index e6cd1c378e..e288e63b82 100644 --- a/go.sum +++ b/go.sum @@ -118,8 +118,6 @@ github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7z github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210127161313-bd30bebeac4f h1:WSnaD0/cvbKJgSTYbjAPf4RJXVvNNDAwVm+W8wEmnGE= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210127161313-bd30bebeac4f/go.mod h1:CJJ5VAbozOl0yEw7nHB9+7BXTJbIn6h7W+f6Gau5IP8= github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210202173413-337fb17121a1 h1:vytHInJpH5I4FheLyFW2wu5LmtcQOJhetm3+jaVGp74= github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210202173413-337fb17121a1/go.mod h1:CJJ5VAbozOl0yEw7nHB9+7BXTJbIn6h7W+f6Gau5IP8= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= From e2aaabb34e0eb3e3683836fb8048139e823f7c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 3 Feb 2021 16:09:31 +0100 Subject: [PATCH 4/6] Fix --- internal/namespaces/lb/v1/lb_cli.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/internal/namespaces/lb/v1/lb_cli.go b/internal/namespaces/lb/v1/lb_cli.go index 581b7e340d..1bd81aa189 100644 --- a/internal/namespaces/lb/v1/lb_cli.go +++ b/internal/namespaces/lb/v1/lb_cli.go @@ -790,13 +790,6 @@ func lbBackendCreate() *core.Command { Deprecated: false, Positional: false, }, - { - Name: "health-check.check-send-proxy", - Short: `It defines whether the healthcheck should be done considering the proxy protocol`, - Required: false, - Deprecated: false, - Positional: false, - }, { Name: "lb-id", Short: `Load balancer ID`, @@ -1244,13 +1237,6 @@ func lbBackendUpdateHealthcheck() *core.Command { Deprecated: false, Positional: false, }, - { - Name: "check-send-proxy", - Short: `It defines whether the healthcheck should be done considering the proxy protocol`, - Required: false, - Deprecated: false, - Positional: false, - }, core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { From c2a138fbeabb234871a7cb4daf4199b148720870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 3 Feb 2021 16:11:10 +0100 Subject: [PATCH 5/6] Fix --- internal/namespaces/get_commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/namespaces/get_commands.go b/internal/namespaces/get_commands.go index ce408e8168..19b8c1d43f 100644 --- a/internal/namespaces/get_commands.go +++ b/internal/namespaces/get_commands.go @@ -3,7 +3,7 @@ package namespaces import ( "github.com/scaleway/scaleway-cli/internal/core" account "github.com/scaleway/scaleway-cli/internal/namespaces/account/v2alpha1" - apple_silicon "github.com/scaleway/scaleway-cli/internal/namespaces/applesilicon/v1alpha1" + applesilicon "github.com/scaleway/scaleway-cli/internal/namespaces/applesilicon/v1alpha1" autocompleteNamespace "github.com/scaleway/scaleway-cli/internal/namespaces/autocomplete" "github.com/scaleway/scaleway-cli/internal/namespaces/baremetal/v1" configNamespace "github.com/scaleway/scaleway-cli/internal/namespaces/config" @@ -48,6 +48,6 @@ func GetCommands() *core.Commands { commands.Merge(iot.GetCommands()) commands.Merge(help.GetCommands()) commands.Merge(vpc.GetCommands()) - commands.Merge(apple_silicon.GetCommands()) + commands.Merge(applesilicon.GetCommands()) return commands } From 54f2bb22eaab6ea0cabab9b931d10a6779301129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 3 Feb 2021 16:19:02 +0100 Subject: [PATCH 6/6] Fix --- cmd/scw/testdata/test-main-usage-usage.golden | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/cmd/scw/testdata/test-main-usage-usage.golden b/cmd/scw/testdata/test-main-usage-usage.golden index c711fa1b6e..0f10ca7a14 100644 --- a/cmd/scw/testdata/test-main-usage-usage.golden +++ b/cmd/scw/testdata/test-main-usage-usage.golden @@ -4,25 +4,26 @@ USAGE: scw AVAILABLE COMMANDS: - account Account API - autocomplete Autocomplete related commands - baremetal Baremetal API - config Config file management - feedback Send feedback to the Scaleway CLI Team! - help Get help about how the CLI works - info Get info about current settings - init Initialize the config - instance Instance API - iot This API allows you to manage IoT hubs and devices - k8s Kapsule API - lb This API allows you to manage your load balancer service - marketplace Marketplace API - object Object-storage utils - rdb Database RDB API - registry Container registry API - version Display cli version - vpc VPC API - help Help about any command + account Account API + apple-silicon Apple silicon API + autocomplete Autocomplete related commands + baremetal Baremetal API + config Config file management + feedback Send feedback to the Scaleway CLI Team! + help Get help about how the CLI works + info Get info about current settings + init Initialize the config + instance Instance API + iot This API allows you to manage IoT hubs and devices + k8s Kapsule API + lb This API allows you to manage your load balancer service + marketplace Marketplace API + object Object-storage utils + rdb Database RDB API + registry Container registry API + version Display cli version + vpc VPC API + help Help about any command FLAGS: -c, --config string The path to the config file