MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / confirm

Function confirm

dev/local/setup-env.ts:179–187  ·  view source on GitHub ↗
(question: string)

Source from the content-addressed store, hash-verified

177 if (isSecret) return generateSecret();
178 return CI_PLACEHOLDER_VALUES[key] ?? defaultValue;
179}
180
181// ---------------------------------------------------------------------------
182// User interaction
183// ---------------------------------------------------------------------------
184
185function confirm(question: string): Promise<boolean> {
186 const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
187 return new Promise(resolve => {
188 rl.question(question, answer => {
189 rl.close();
190 resolve(answer.toLowerCase() === 'y' || answer.toLowerCase() === 'yes');

Callers 15

mainFunction · 0.70
handleUninstallFunction · 0.50
handleDevRemoveDbRowOnlyFunction · 0.50
handleDisconnectFunction · 0.50
handleUninstallFunction · 0.50
handleDevRemoveDbRowOnlyFunction · 0.50
handleUninstallFunction · 0.50
handleDevRemoveDbRowOnlyFunction · 0.50
handleDisconnectIdentityFunction · 0.50
handleUninstallFunction · 0.50
handleCancelPendingFunction · 0.50

Calls 2

closeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected