Skip to content

Commit 5cfdb22

Browse files
committed
bug: Add missing CLI commands/actions to operations
This is for the Linode CLI. In the current CLI release, we see this: ```bash wsmith@linode::linode-cli[master]$ linode-cli default --help linode-cli default [ACTION] Available actions: ┌──────────────────────┬────────────────────────┐ │ action │ summary │ ├──────────────────────┼────────────────────────┤ │ getEntityTransfers │ Entity Transfers List │ │ createEntityTransfer │ Entity Transfer Create │ │ getEntityTransfer │ Entity Transfer View │ │ deleteEntityTransfer │ Entity Transfer Cancel │ │ acceptEntityTransfer │ Entity Transfer Accept │ │ import │ Domain Import │ └──────────────────────┴────────────────────────┘ ``` These operations appear in "default" because they have no `x-linode-cli-command` defined in the spec (so they fall into the default command). This isn't ideal. Additionally, many of those commands are using their operationId as their action since they lack a `x-linode-cli-action` element. This change adds a command and action to all of the above.
1 parent c0f5efc commit 5cfdb22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,11 @@ paths:
598598
--expiry_year 2025 \
599599
--cvv 111
600600
/account/entity-transfers:
601+
x-linode-cli-command: account
601602
get:
602603
deprecated: true
603604
x-linode-grant: unrestricted only
605+
x-linode-cli-action: entity-transfers-list
604606
parameters:
605607
- $ref: '#/components/parameters/pageOffset'
606608
- $ref: '#/components/parameters/pageSize'
@@ -639,6 +641,7 @@ paths:
639641
post:
640642
deprecated: true
641643
x-linode-grant: unrestricted only
644+
x-linode-cli-action: entity-transfer-create
642645
tags:
643646
- Account
644647
summary: Entity Transfer Create
@@ -685,6 +688,7 @@ paths:
685688
}' \
686689
https://api.linode.com/v4/account/entity-transfers
687690
/account/entity-transfers/{token}:
691+
x-linode-cli-command: account
688692
parameters:
689693
- name: token
690694
in: path
@@ -696,6 +700,7 @@ paths:
696700
get:
697701
deprecated: true
698702
x-linode-grant: unrestricted only
703+
x-linode-cli-action: entity-transfer-view
699704
tags:
700705
- Account
701706
summary: Entity Transfer View
@@ -724,6 +729,7 @@ paths:
724729
delete:
725730
deprecated: true
726731
x-linode-grant: unrestricted only
732+
x-linode-cli-action: entity-transfer-cancel
727733
tags:
728734
- Account
729735
summary: Entity Transfer Cancel
@@ -751,6 +757,7 @@ paths:
751757
-X DELETE \
752758
https://api.linode.com/v4/account/entity-transfers/123E4567-E89B-12D3-A456-426614174000
753759
/account/entity-transfers/{token}/accept:
760+
x-linode-cli-command: account
754761
parameters:
755762
- name: token
756763
in: path
@@ -762,6 +769,7 @@ paths:
762769
post:
763770
deprecated: true
764771
x-linode-grant: unrestricted only
772+
x-linode-cli-action: entity-transfer-accept
765773
tags:
766774
- Account
767775
summary: Entity Transfer Accept
@@ -3344,6 +3352,7 @@ paths:
33443352
source: >
33453353
linode-cli domains zone-file 123
33463354
/domains/import:
3355+
x-linode-cli-command: domains
33473356
post:
33483357
x-linode-grant: read_write
33493358
x-linode-cli-command: domains

0 commit comments

Comments
 (0)