Skip to content

Commit 1e4bd3e

Browse files
authored
feat(marketplace): switch CLI generation from v1 to v2 (#2718)
1 parent 14d1ee3 commit 1e4bd3e

13 files changed

+498
-4022
lines changed

cmd/scw/testdata/test-all-usage-marketplace-image-list-usage.golden

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
List marketplace images.
44

55
USAGE:
6-
scw marketplace image list
6+
scw marketplace image list [arg=value ...]
7+
8+
ARGS:
9+
[order-by] Ordering to use (name_asc | name_desc | created_at_asc | created_at_desc | updated_at_asc | updated_at_desc)
10+
[arch] Choose for which machine architecture to return images
11+
[category] Choose the category of images to get
12+
[include-eol] Choose to include end-of-life images
713

814
FLAGS:
915
-h, --help help for list

docs/commands/marketplace.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,18 @@ List marketplace images.
3838
**Usage:**
3939

4040
```
41-
scw marketplace image list
41+
scw marketplace image list [arg=value ...]
4242
```
4343

4444

45+
**Args:**
46+
47+
| Name | | Description |
48+
|------|---|-------------|
49+
| order-by | One of: `name_asc`, `name_desc`, `created_at_asc`, `created_at_desc`, `updated_at_asc`, `updated_at_desc` | Ordering to use |
50+
| arch | | Choose for which machine architecture to return images |
51+
| category | | Choose the category of images to get |
52+
| include-eol | | Choose to include end-of-life images |
53+
54+
4555

internal/namespaces/get_commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/iot/v1"
2222
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/k8s/v1"
2323
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/lb/v1"
24-
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/marketplace/v1"
24+
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/marketplace/v2"
2525
mnq "github.com/scaleway/scaleway-cli/v2/internal/namespaces/mnq/v1alpha1"
2626
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/object/v1"
2727
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/rdb/v1"

internal/namespaces/marketplace/v1/custom_marshal.go

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)