Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/carapace-aws/cmd/botocore/aws.signin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
name: signin
description: AWS Sign-In Service
commands:
- name: create-o-auth2-token
- name: create-oauth2-token
aliases:
- create-o-auth2-token
description: CreateOAuth2Token API
flags:
--cli-input-json=: Read arguments from the JSON string provided.
Expand Down
20 changes: 20 additions & 0 deletions cmd/carapace-spec-botocore/cmd/customizations/signin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package customizations

import "github.com/carapace-sh/carapace-spec/pkg/command"

func init() {
customizations["signin.create-oauth2-token"] = func(cmd *command.Command) error {
cmd.Aliases = append(cmd.Aliases, "create-o-auth2-token")
return nil
}

customizations["translate.import-terminology"] = func(cmd *command.Command) error {
cmd.AddFlag(command.Flag{
Longhand: "data-file",
Description: "The path to the file of the code you are uploading.",
Value: true,
Required: true,
})
return nil
}
}
1 change: 1 addition & 0 deletions cmd/carapace-spec-botocore/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func CamelCaseToDash(s string) string {
"create-cachedi-scsi-volume": "create-cached-iscsi-volume",
"create-environment-e-c2": "create-environment-ec2",
"create-storedi-scsi-volume": "create-stored-iscsi-volume",
"create-o-auth2-token": "create-oauth2-token",
"create-o-auth2-token-with-iam": "create-oauth2-token-with-iam",
"create-whats-app-flow": "create-whatsapp-flow",
"create-whats-app-message-template": "create-whatsapp-message-template",
Expand Down