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

Function selectOne

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

Source from the content-addressed store, hash-verified

179}
180
181export async function selectOne(message: string, options: SelectOption[]): Promise<string> {
182 const result = await clackSelect<string>({
183 message,
184 options: options.map(toClackOption) as ClackOptionsArray,
185 });
186 handleCancel(result);
187 return result as string;
188}
189
190export async function selectMany(
191 message: string,

Callers 2

runIssueFlowFunction · 0.90

Calls 1

handleCancelFunction · 0.85

Tested by

no test coverage detected