Skip to content

Commit 95a5d4f

Browse files
fix(marketplace): order by type by default (scaleway#3901)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 0c37c8d commit 95a5d4f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
ARGS:
99
[image-id]
1010
[version-id]
11-
[order-by] (type_asc | type_desc | created_at_asc | created_at_desc)
11+
[order-by] (created_at_asc | created_at_desc)
1212
[image-label]
1313
[zone]
1414
[type] (unknown_type | instance_local | instance_sbs)

docs/commands/marketplace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ scw marketplace local-image list [arg=value ...]
139139
|------|---|-------------|
140140
| image-id | | |
141141
| version-id | | |
142-
| order-by | One of: `type_asc`, `type_desc`, `created_at_asc`, `created_at_desc` | |
142+
| order-by | One of: `created_at_asc`, `created_at_desc` | |
143143
| image-label | | |
144144
| zone | | |
145145
| type | One of: `unknown_type`, `instance_local`, `instance_sbs` | |

internal/namespaces/marketplace/v2/marketplace_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func marketplaceLocalImageList() *core.Command {
293293
Required: false,
294294
Deprecated: false,
295295
Positional: false,
296-
EnumValues: []string{"type_asc", "type_desc", "created_at_asc", "created_at_desc"},
296+
EnumValues: []string{"created_at_asc", "created_at_desc"},
297297
},
298298
{
299299
Name: "image-label",

0 commit comments

Comments
 (0)