diff --git a/cmd/carapace-aws/cmd/botocore/aws.bedrock-agentcore.yaml b/cmd/carapace-aws/cmd/botocore/aws.bedrock-agentcore.yaml index f96e09ffe..df747ae75 100755 --- a/cmd/carapace-aws/cmd/botocore/aws.bedrock-agentcore.yaml +++ b/cmd/carapace-aws/cmd/botocore/aws.bedrock-agentcore.yaml @@ -201,23 +201,6 @@ commands: completion: positional: - - $files - - name: invoke-agent-runtime-command - description: Executes a command in a runtime session container. - flags: - --accept=: The desired MIME type for the response from the agent runtime command. - --account-id=: Account ID (12 digits) - --agent-runtime-arn=!: ARN of the agent runtime - --baggage=: Additional context information for distributed tracing. - --body=!: Request body containing command and timeout - --cli-input-json=: Read arguments from the JSON string provided. - --cli-input-yaml=: Read arguments from the YAML string provided. - --content-type=: The MIME type of the input data in the request payload. - --generate-cli-skeleton: Prints a JSON skeleton to standard output without sending an API request. - --qualifier=: Version or alias qualifier - --runtime-session-id=: Runtime session identifier - --trace-id=: The trace identifier for request tracking. - --trace-parent=: The parent trace information for distributed tracing. - --trace-state=: The trace state information for distributed tracing. - name: list-actors description: Lists all actors in an AgentCore Memory resource. flags: diff --git a/cmd/carapace-aws/cmd/botocore/aws.polly.yaml b/cmd/carapace-aws/cmd/botocore/aws.polly.yaml index 9f10b9597..20936fd3d 100755 --- a/cmd/carapace-aws/cmd/botocore/aws.polly.yaml +++ b/cmd/carapace-aws/cmd/botocore/aws.polly.yaml @@ -122,184 +122,6 @@ commands: --content=!: Content of the PLS lexicon as string data. --generate-cli-skeleton: Prints a JSON skeleton to standard output without sending an API request. --name=!: Name of the lexicon. - - name: start-speech-synthesis-stream - description: Synthesizes UTF-8 input, plain text, or SSML over a bidirectional streaming connection. - flags: - --action-stream=: The input event stream that contains text events and stream control events. - --cli-input-json=: Read arguments from the JSON string provided. - --cli-input-yaml=: Read arguments from the YAML string provided. - --engine=!: Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. - --generate-cli-skeleton: Prints a JSON skeleton to standard output without sending an API request. - --language-code=: An optional parameter that sets the language code for the speech synthesis request. - --lexicon-names=: - description: The names of one or more pronunciation lexicons for the service to apply during synthesis. - nargs: -1 - --output-format=!: The audio format for the synthesized speech. - --sample-rate=: The audio frequency, specified in Hz. - --voice-id=!: The voice to use in synthesis. - completion: - flag: - engine: - - standard - - neural - - long-form - - generative - language-code: - - arb - - cmn-CN - - cy-GB - - da-DK - - de-DE - - en-AU - - en-GB - - en-GB-WLS - - en-IN - - en-US - - es-ES - - es-MX - - es-US - - fr-CA - - fr-FR - - is-IS - - it-IT - - ja-JP - - hi-IN - - ko-KR - - nb-NO - - nl-NL - - pl-PL - - pt-BR - - pt-PT - - ro-RO - - ru-RU - - sv-SE - - tr-TR - - en-NZ - - en-ZA - - ca-ES - - de-AT - - yue-CN - - ar-AE - - fi-FI - - en-IE - - nl-BE - - fr-BE - - cs-CZ - - de-CH - - en-SG - output-format: - - json - - mp3 - - ogg_opus - - ogg_vorbis - - pcm - voice-id: - - Aditi - - Amy - - Astrid - - Bianca - - Brian - - Camila - - Carla - - Carmen - - Celine - - Chantal - - Conchita - - Cristiano - - Dora - - Emma - - Enrique - - Ewa - - Filiz - - Gabrielle - - Geraint - - Giorgio - - Gwyneth - - Hans - - Ines - - Ivy - - Jacek - - Jan - - Joanna - - Joey - - Justin - - Karl - - Kendra - - Kevin - - Kimberly - - Lea - - Liv - - Lotte - - Lucia - - Lupe - - Mads - - Maja - - Marlene - - Mathieu - - Matthew - - Maxim - - Mia - - Miguel - - Mizuki - - Naja - - Nicole - - Olivia - - Penelope - - Raveena - - Ricardo - - Ruben - - Russell - - Salli - - Seoyeon - - Takumi - - Tatyana - - Vicki - - Vitoria - - Zeina - - Zhiyu - - Aria - - Ayanda - - Arlet - - Hannah - - Arthur - - Daniel - - Liam - - Pedro - - Kajal - - Hiujin - - Laura - - Elin - - Ida - - Suvi - - Ola - - Hala - - Andres - - Sergio - - Remi - - Adriano - - Thiago - - Ruth - - Stephen - - Kazuha - - Tomoko - - Niamh - - Sofie - - Lisa - - Isabelle - - Zayd - - Danielle - - Gregory - - Burcu - - Jitka - - Sabrina - - Jasmine - - Jihye - - Ambre - - Beatrice - - Florian - - Lennart - - Lorenzo - - Tiffany - name: start-speech-synthesis-task description: Allows the creation of an asynchronous synthesis task, by starting a new `SpeechSynthesisTask`. flags: diff --git a/cmd/carapace-aws/cmd/botocore/aws.s3.yaml b/cmd/carapace-aws/cmd/botocore/aws.s3.yaml index 770627464..6745f7350 100755 --- a/cmd/carapace-aws/cmd/botocore/aws.s3.yaml +++ b/cmd/carapace-aws/cmd/botocore/aws.s3.yaml @@ -76,7 +76,7 @@ commands: flags: --tags=*: description: This flag specifies tags to be added to the bucket in the format of `--tags key value` - nargs: -1 + nargs: 2 - name: mv description: Moves a local file or S3 object to another location locally or in S3. flags: diff --git a/cmd/carapace-spec-botocore/cmd/customizations/bedrock-agentcore.go b/cmd/carapace-spec-botocore/cmd/customizations/bedrock-agentcore.go new file mode 100644 index 000000000..23045cd5c --- /dev/null +++ b/cmd/carapace-spec-botocore/cmd/customizations/bedrock-agentcore.go @@ -0,0 +1,9 @@ +package customizations + +import "github.com/carapace-sh/carapace-spec/pkg/command" + +func init() { + customizations["bedrock-agentcore.invoke-agent-runtime-command"] = func(cmd *command.Command) error { + return &SkipError{} + } +} diff --git a/cmd/carapace-spec-botocore/cmd/customizations/customizations.go b/cmd/carapace-spec-botocore/cmd/customizations/customizations.go index eecdd6dc9..16b1c05c6 100644 --- a/cmd/carapace-spec-botocore/cmd/customizations/customizations.go +++ b/cmd/carapace-spec-botocore/cmd/customizations/customizations.go @@ -7,6 +7,12 @@ import ( "gopkg.in/yaml.v3" ) +type SkipError struct{} + +func (m *SkipError) Error() string { + return "should be skipped" +} + var customizations = make(map[string]func(cmd *command.Command) error) func CustomizeCommand(id string, cmd *command.Command) error { diff --git a/cmd/carapace-spec-botocore/cmd/customizations/polly.go b/cmd/carapace-spec-botocore/cmd/customizations/polly.go new file mode 100644 index 000000000..317dcc4c7 --- /dev/null +++ b/cmd/carapace-spec-botocore/cmd/customizations/polly.go @@ -0,0 +1,9 @@ +package customizations + +import "github.com/carapace-sh/carapace-spec/pkg/command" + +func init() { + customizations["polly.start-speech-synthesis-stream"] = func(cmd *command.Command) error { + return &SkipError{} + } +} diff --git a/cmd/carapace-spec-botocore/cmd/customizations/s3/aws.s3.yaml b/cmd/carapace-spec-botocore/cmd/customizations/s3/aws.s3.yaml index 7887aab32..14abce3f4 100644 --- a/cmd/carapace-spec-botocore/cmd/customizations/s3/aws.s3.yaml +++ b/cmd/carapace-spec-botocore/cmd/customizations/s3/aws.s3.yaml @@ -79,7 +79,7 @@ commands: - name: mb description: Creates an S3 bucket flags: - --tags=*: {description: This flag specifies tags to be added to the bucket in the format of `--tags key value`, nargs: -1} + --tags=*: {description: This flag specifies tags to be added to the bucket in the format of `--tags key value`, nargs: 2} # TODO positional completion - name: mv diff --git a/cmd/carapace-spec-botocore/cmd/root.go b/cmd/carapace-spec-botocore/cmd/root.go index 56af98ca1..e083608e9 100644 --- a/cmd/carapace-spec-botocore/cmd/root.go +++ b/cmd/carapace-spec-botocore/cmd/root.go @@ -400,7 +400,12 @@ func parseService(name, folder string) command.Command { // TODO others } } - customizations.CustomizeCommand(fmt.Sprintf("%s.%s", cmd.Name, subCmd.Name), &subCmd) + if err := customizations.CustomizeCommand(fmt.Sprintf("%s.%s", cmd.Name, subCmd.Name), &subCmd); err != nil { + if _, ok := err.(*customizations.SkipError); ok { + continue + } + panic(err.Error()) // TODO just panic? + } cmd.Commands = append(cmd.Commands, subCmd) }