Skip to content

Commit dfb9071

Browse files
feat(cockpit): set get token's token id as positional (#2943)
Co-authored-by: Nathanael Demacon <[email protected]>
1 parent 9650c41 commit dfb9071

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Get the token associated with the given ID.
44

55
USAGE:
6-
scw cockpit token get [arg=value ...]
6+
scw cockpit token get <token-id ...> [arg=value ...]
77

88
ARGS:
99
token-id

docs/commands/cockpit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Get the token associated with the given ID.
408408
**Usage:**
409409

410410
```
411-
scw cockpit token get [arg=value ...]
411+
scw cockpit token get <token-id ...> [arg=value ...]
412412
```
413413

414414

internal/namespaces/cockpit/v1beta1/cockpit_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func cockpitTokenGet() *core.Command {
310310
Name: "token-id",
311311
Required: true,
312312
Deprecated: false,
313-
Positional: false,
313+
Positional: true,
314314
},
315315
},
316316
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)