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
17 changes: 0 additions & 17 deletions cmd/carapace-aws/cmd/botocore/aws.bedrock-agentcore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
178 changes: 0 additions & 178 deletions cmd/carapace-aws/cmd/botocore/aws.polly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion cmd/carapace-aws/cmd/botocore/aws.s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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{}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 9 additions & 0 deletions cmd/carapace-spec-botocore/cmd/customizations/polly.go
Original file line number Diff line number Diff line change
@@ -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{}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion cmd/carapace-spec-botocore/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
Loading