Skip to content

Commit a22b1be

Browse files
committed
feat(iot): add generation for CLI commands
1 parent 45018f1 commit a22b1be

10 files changed

+960
-4
lines changed

cmd/scw/testdata/test-all-usage-lbip-create-usage.golden

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ USAGE:
66
scw lb ip create [arg=value ...]
77

88
ARGS:
9+
project-id Assign the resource to a project ID
910
[reverse] Reverse domain name
1011
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
1112
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

cmd/scw/testdata/test-all-usage-lbip-list-usage.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ USAGE:
77

88
ARGS:
99
[ip-address] Use this to search by IP address
10-
[organization-id]
10+
[project-id] Filter IPs by project ID
11+
[organization-id] Filter IPs by organization id
1112
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1213

1314
FLAGS:

cmd/scw/testdata/test-all-usage-lblb-create-usage.golden

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ USAGE:
66
scw lb lb create [arg=value ...]
77

88
ARGS:
9+
project-id Assign the resource to a project ID
910
name=<generated> Resource names
1011
[description] Resource description
1112
[ip-id] Just like for compute instances, when you destroy a load balancer, you can keep its highly available IP address and reuse it for another load balancer later

cmd/scw/testdata/test-all-usage-lblb-list-usage.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ USAGE:
88
ARGS:
99
[name] Use this to search by name
1010
[order-by] (created_at_asc | created_at_desc | name_asc | name_desc)
11-
[organization-id]
11+
[project-id] Filter LBs by project ID
12+
[organization-id] Filter LBs by organization ID
1213
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1314

1415
FLAGS:

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

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
[order-by] Field by which to order the display of Images (created_at_asc | created_at_desc | name_asc | name_desc)
1010
[namespace-id] Filter by the Namespace ID
1111
[name] Filter by the Image name (exact match)
12+
[project-id] Filter by Project ID
1213
[organization-id] Filter by Organization ID
1314
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1415

cmd/scw/testdata/test-all-usage-registry-namespace-create-usage.golden

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ USAGE:
88
ARGS:
99
name Define a namespace name
1010
[description] Define a description
11+
[project-id] Assign the namespace to a project ID
1112
[is-public] Define the default visibility policy
1213
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
1314
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

cmd/scw/testdata/test-all-usage-registry-namespace-list-usage.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ USAGE:
77

88
ARGS:
99
[order-by] Field by which to order the display of Images (created_at_asc | created_at_desc | description_asc | description_desc | name_asc | name_desc)
10+
[project-id] Filter by Project ID
1011
[name] Filter by the namespace name (exact match)
11-
[organization-id] Filter by the namespace owner
12+
[organization-id] Filter by Organization ID
1213
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1314

1415
FLAGS:

0 commit comments

Comments
 (0)