MCPcopy Create free account
hub / github.com/cortexkit/magic-context / selectMany

Function selectMany

packages/cli/src/lib/prompts.ts:190–203  ·  view source on GitHub ↗
(
    message: string,
    options: SelectOption[],
    initial?: string[],
)

Source from the content-addressed store, hash-verified

188}
189
190export async function selectMany(
191 message: string,
192 options: SelectOption[],
193 initial?: string[],
194): Promise<string[]> {
195 const result = await clackMultiselect<string>({
196 message,
197 options: options.map(toClackOption) as ClackOptionsArray,
198 required: false,
199 initialValues: initial,
200 });
201 handleCancel(result);
202 return result as string[];
203}
204
205export async function selectAutocomplete(
206 message: string,

Callers 2

runClearFunction · 0.90

Calls 1

handleCancelFunction · 0.85

Tested by

no test coverage detected