MCPcopy
hub / github.com/lingodotdev/lingo.dev / waitForUserPrompt

Function waitForUserPrompt

packages/cli/src/cli/utils/ui.ts:69–81  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

67}
68
69export async function waitForUserPrompt(message: string): Promise<void> {
70 const rl = readline.createInterface({
71 input: process.stdin,
72 output: process.stdout,
73 });
74
75 return new Promise((resolve) => {
76 rl.question(chalk.dim(`[${message}]\n`), () => {
77 rl.close();
78 resolve();
79 });
80 });
81}
82
83export async function pauseIfDebug(debug: boolean) {
84 if (debug) {

Callers 1

pauseIfDebugFunction · 0.85

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected