Skip to content

Commit a41237b

Browse files
authored
Merge pull request #253 from carapace-sh/add-removals
added removals
2 parents 7346889 + a008e4b commit a41237b

8 files changed

Lines changed: 32 additions & 198 deletions

File tree

cmd/carapace-aws/cmd/botocore/aws.bedrock-agentcore.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -201,23 +201,6 @@ commands:
201201
completion:
202202
positional:
203203
- - $files
204-
- name: invoke-agent-runtime-command
205-
description: Executes a command in a runtime session container.
206-
flags:
207-
--accept=: The desired MIME type for the response from the agent runtime command.
208-
--account-id=: Account ID (12 digits)
209-
--agent-runtime-arn=!: ARN of the agent runtime
210-
--baggage=: Additional context information for distributed tracing.
211-
--body=!: Request body containing command and timeout
212-
--cli-input-json=: Read arguments from the JSON string provided.
213-
--cli-input-yaml=: Read arguments from the YAML string provided.
214-
--content-type=: The MIME type of the input data in the request payload.
215-
--generate-cli-skeleton: Prints a JSON skeleton to standard output without sending an API request.
216-
--qualifier=: Version or alias qualifier
217-
--runtime-session-id=: Runtime session identifier
218-
--trace-id=: The trace identifier for request tracking.
219-
--trace-parent=: The parent trace information for distributed tracing.
220-
--trace-state=: The trace state information for distributed tracing.
221204
- name: list-actors
222205
description: Lists all actors in an AgentCore Memory resource.
223206
flags:

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

Lines changed: 0 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -122,184 +122,6 @@ commands:
122122
--content=!: Content of the PLS lexicon as string data.
123123
--generate-cli-skeleton: Prints a JSON skeleton to standard output without sending an API request.
124124
--name=!: Name of the lexicon.
125-
- name: start-speech-synthesis-stream
126-
description: Synthesizes UTF-8 input, plain text, or SSML over a bidirectional streaming connection.
127-
flags:
128-
--action-stream=: The input event stream that contains text events and stream control events.
129-
--cli-input-json=: Read arguments from the JSON string provided.
130-
--cli-input-yaml=: Read arguments from the YAML string provided.
131-
--engine=!: Specifies the engine for Amazon Polly to use when processing input text for speech synthesis.
132-
--generate-cli-skeleton: Prints a JSON skeleton to standard output without sending an API request.
133-
--language-code=: An optional parameter that sets the language code for the speech synthesis request.
134-
--lexicon-names=:
135-
description: The names of one or more pronunciation lexicons for the service to apply during synthesis.
136-
nargs: -1
137-
--output-format=!: The audio format for the synthesized speech.
138-
--sample-rate=: The audio frequency, specified in Hz.
139-
--voice-id=!: The voice to use in synthesis.
140-
completion:
141-
flag:
142-
engine:
143-
- standard
144-
- neural
145-
- long-form
146-
- generative
147-
language-code:
148-
- arb
149-
- cmn-CN
150-
- cy-GB
151-
- da-DK
152-
- de-DE
153-
- en-AU
154-
- en-GB
155-
- en-GB-WLS
156-
- en-IN
157-
- en-US
158-
- es-ES
159-
- es-MX
160-
- es-US
161-
- fr-CA
162-
- fr-FR
163-
- is-IS
164-
- it-IT
165-
- ja-JP
166-
- hi-IN
167-
- ko-KR
168-
- nb-NO
169-
- nl-NL
170-
- pl-PL
171-
- pt-BR
172-
- pt-PT
173-
- ro-RO
174-
- ru-RU
175-
- sv-SE
176-
- tr-TR
177-
- en-NZ
178-
- en-ZA
179-
- ca-ES
180-
- de-AT
181-
- yue-CN
182-
- ar-AE
183-
- fi-FI
184-
- en-IE
185-
- nl-BE
186-
- fr-BE
187-
- cs-CZ
188-
- de-CH
189-
- en-SG
190-
output-format:
191-
- json
192-
- mp3
193-
- ogg_opus
194-
- ogg_vorbis
195-
- pcm
196-
voice-id:
197-
- Aditi
198-
- Amy
199-
- Astrid
200-
- Bianca
201-
- Brian
202-
- Camila
203-
- Carla
204-
- Carmen
205-
- Celine
206-
- Chantal
207-
- Conchita
208-
- Cristiano
209-
- Dora
210-
- Emma
211-
- Enrique
212-
- Ewa
213-
- Filiz
214-
- Gabrielle
215-
- Geraint
216-
- Giorgio
217-
- Gwyneth
218-
- Hans
219-
- Ines
220-
- Ivy
221-
- Jacek
222-
- Jan
223-
- Joanna
224-
- Joey
225-
- Justin
226-
- Karl
227-
- Kendra
228-
- Kevin
229-
- Kimberly
230-
- Lea
231-
- Liv
232-
- Lotte
233-
- Lucia
234-
- Lupe
235-
- Mads
236-
- Maja
237-
- Marlene
238-
- Mathieu
239-
- Matthew
240-
- Maxim
241-
- Mia
242-
- Miguel
243-
- Mizuki
244-
- Naja
245-
- Nicole
246-
- Olivia
247-
- Penelope
248-
- Raveena
249-
- Ricardo
250-
- Ruben
251-
- Russell
252-
- Salli
253-
- Seoyeon
254-
- Takumi
255-
- Tatyana
256-
- Vicki
257-
- Vitoria
258-
- Zeina
259-
- Zhiyu
260-
- Aria
261-
- Ayanda
262-
- Arlet
263-
- Hannah
264-
- Arthur
265-
- Daniel
266-
- Liam
267-
- Pedro
268-
- Kajal
269-
- Hiujin
270-
- Laura
271-
- Elin
272-
- Ida
273-
- Suvi
274-
- Ola
275-
- Hala
276-
- Andres
277-
- Sergio
278-
- Remi
279-
- Adriano
280-
- Thiago
281-
- Ruth
282-
- Stephen
283-
- Kazuha
284-
- Tomoko
285-
- Niamh
286-
- Sofie
287-
- Lisa
288-
- Isabelle
289-
- Zayd
290-
- Danielle
291-
- Gregory
292-
- Burcu
293-
- Jitka
294-
- Sabrina
295-
- Jasmine
296-
- Jihye
297-
- Ambre
298-
- Beatrice
299-
- Florian
300-
- Lennart
301-
- Lorenzo
302-
- Tiffany
303125
- name: start-speech-synthesis-task
304126
description: Allows the creation of an asynchronous synthesis task, by starting a new `SpeechSynthesisTask`.
305127
flags:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ commands:
7676
flags:
7777
--tags=*:
7878
description: This flag specifies tags to be added to the bucket in the format of `--tags key value`
79-
nargs: -1
79+
nargs: 2
8080
- name: mv
8181
description: Moves a local file or S3 object to another location locally or in S3.
8282
flags:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package customizations
2+
3+
import "github.com/carapace-sh/carapace-spec/pkg/command"
4+
5+
func init() {
6+
customizations["bedrock-agentcore.invoke-agent-runtime-command"] = func(cmd *command.Command) error {
7+
return &SkipError{}
8+
}
9+
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import (
77
"gopkg.in/yaml.v3"
88
)
99

10+
type SkipError struct{}
11+
12+
func (m *SkipError) Error() string {
13+
return "should be skipped"
14+
}
15+
1016
var customizations = make(map[string]func(cmd *command.Command) error)
1117

1218
func CustomizeCommand(id string, cmd *command.Command) error {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package customizations
2+
3+
import "github.com/carapace-sh/carapace-spec/pkg/command"
4+
5+
func init() {
6+
customizations["polly.start-speech-synthesis-stream"] = func(cmd *command.Command) error {
7+
return &SkipError{}
8+
}
9+
}

cmd/carapace-spec-botocore/cmd/customizations/s3/aws.s3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ commands:
7979
- name: mb
8080
description: Creates an S3 bucket
8181
flags:
82-
--tags=*: {description: This flag specifies tags to be added to the bucket in the format of `--tags key value`, nargs: -1}
82+
--tags=*: {description: This flag specifies tags to be added to the bucket in the format of `--tags key value`, nargs: 2}
8383
# TODO positional completion
8484

8585
- name: mv

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,12 @@ func parseService(name, folder string) command.Command {
400400
// TODO others
401401
}
402402
}
403-
customizations.CustomizeCommand(fmt.Sprintf("%s.%s", cmd.Name, subCmd.Name), &subCmd)
403+
if err := customizations.CustomizeCommand(fmt.Sprintf("%s.%s", cmd.Name, subCmd.Name), &subCmd); err != nil {
404+
if _, ok := err.(*customizations.SkipError); ok {
405+
continue
406+
}
407+
panic(err.Error()) // TODO just panic?
408+
}
404409
cmd.Commands = append(cmd.Commands, subCmd)
405410
}
406411

0 commit comments

Comments
 (0)