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: 4 additions & 0 deletions cmd/carapace-aws/cmd/botocore/aws.codecommit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,14 @@ commands:
- name: credential-helper
description: Provide a SigV4 compatible user name and password for git smart HTTP.
commands:
- name: erase
description: Erase is a no-op.
- name: get
description: Get a username SigV4 credential pair based on protocol, host and path provided from standard in.
flags:
--ignore-host-check: Generate credentials regardless of whether the domain is an Amazon domain.
- name: store
description: Store is a no-op.
- name: delete-approval-rule-template
description: Deletes a specified approval rule template.
flags:
Expand Down
1 change: 0 additions & 1 deletion cmd/carapace-aws/cmd/botocore/aws.ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15113,7 +15113,6 @@ commands:
--generate-cli-skeleton: Prints a JSON skeleton to standard output without sending an API request.
--instance-id=!: The ID of the Windows instance.
--no-dry-run: Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response.
--priv-launch-key=: The file that contains the private key used to launch the instance
- name: secondary-network-create-complete
description: Describes one or more secondary networks.
flags:
Expand Down
1 change: 1 addition & 0 deletions cmd/carapace-aws/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func init() {
"history",
"login",
"logout",
"update",
} {
subCmd := &cobra.Command{
Use: extension,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ documentation:
Get is operation to generate credentials to authenticate AWS CodeCommit.
Run “aws codecommit credential-helper help” for details
commands:
- name: erase
description: Erase is a no-op.
- name: get
description: Get a username SigV4 credential pair based on protocol, host and path provided from standard in.
flags:
Expand All @@ -17,4 +19,6 @@ commands:
command: |
Get a username SigV4 credential pair based on protocol, host and path provided from standard in.
This is primarily called by git to generate credentials to authenticate against AWS CodeCommit
- name: store
description: Store is a no-op.

19 changes: 19 additions & 0 deletions cmd/carapace-spec-botocore/cmd/customizations/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ import (
)

func init() {
customizations["ec2"] = func(cmd *command.Command) error {
for i := range cmd.Commands {
if cmd.Commands[i].Name == "wait" {
for j := range cmd.Commands[i].Commands {
if cmd.Commands[i].Commands[j].Name == "password-data-available" {
flags := make(command.FlagSet)
for k, v := range cmd.Commands[i].Commands[j].Flags {
if k != "--priv-launch-key=" {
flags[k] = v
}
}
cmd.Commands[i].Commands[j].Flags = flags
}
}
}
}
return nil
}

customizations["ec2.modify-instance-attribute"] = func(cmd *command.Command) error {
delete(cmd.Flags, "--enable-api-termination") // TODO should be this but seems awscli is missing the rename here
cmd.AddFlag(command.Flag{
Expand Down