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

Function confirm

packages/cli/src/lib/prompts.ts:136–140  ·  view source on GitHub ↗
(message: string, defaultYes = true)

Source from the content-addressed store, hash-verified

134}
135
136export async function confirm(message: string, defaultYes = true): Promise<boolean> {
137 const result = await clackConfirm({ message, initialValue: defaultYes });
138 handleCancel(result);
139 return result as boolean;
140}
141
142export async function text(
143 message: string,

Callers 4

runClearFunction · 0.90
runIssueFlowFunction · 0.90
runSetupFunction · 0.90

Calls 1

handleCancelFunction · 0.85

Tested by

no test coverage detected