Skip to content

Commit a7d28fd

Browse files
authored
Merge pull request #336 from carapace-sh/oauth2-token
oauth2 token
2 parents 8f620bd + 824f6a2 commit a7d28fd

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

cmd/carapace-aws/cmd/botocore/aws.signin.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
name: signin
33
description: AWS Sign-In Service
44
commands:
5-
- name: create-o-auth2-token
5+
- name: create-oauth2-token
6+
aliases:
7+
- create-o-auth2-token
68
description: CreateOAuth2Token API
79
flags:
810
--cli-input-json=: Read arguments from the JSON string provided.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package customizations
2+
3+
import "github.com/carapace-sh/carapace-spec/pkg/command"
4+
5+
func init() {
6+
customizations["signin.create-oauth2-token"] = func(cmd *command.Command) error {
7+
cmd.Aliases = append(cmd.Aliases, "create-o-auth2-token")
8+
return nil
9+
}
10+
11+
customizations["translate.import-terminology"] = func(cmd *command.Command) error {
12+
cmd.AddFlag(command.Flag{
13+
Longhand: "data-file",
14+
Description: "The path to the file of the code you are uploading.",
15+
Value: true,
16+
Required: true,
17+
})
18+
return nil
19+
}
20+
}

cmd/carapace-spec-botocore/cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func CamelCaseToDash(s string) string {
123123
"create-cachedi-scsi-volume": "create-cached-iscsi-volume",
124124
"create-environment-e-c2": "create-environment-ec2",
125125
"create-storedi-scsi-volume": "create-stored-iscsi-volume",
126+
"create-o-auth2-token": "create-oauth2-token",
126127
"create-o-auth2-token-with-iam": "create-oauth2-token-with-iam",
127128
"create-whats-app-flow": "create-whatsapp-flow",
128129
"create-whats-app-message-template": "create-whatsapp-message-template",

0 commit comments

Comments
 (0)