INNER CODE UNIT · TypeScript

answer

AmrDab/clawdcursor · src/surface/cli.ts:1105

    const answer = await new Promise<string>((resolve) => {
      rl.question(`\n${e('⚠️', '[WARN]')}  This will remove all Clawd Cursor config and data. Continue? (y/N) `, resolve);
    });
    rl.close();

    if (answer.toLowerCase() !== 'y') {
      console.log('Cancelled.');
      return;
    }

    console.log(`\n${e('🗑️', '[DEL]')}  Uninstalling Clawd Cursor...\n`);
    const clawdRoot = getPackageRoot();
    const homeDir = os.homedir();
    let removed = 0;
    const failed: string[] = [];

    // Resilient remove: never let one locked / permission-denied path abort the
    // whole uninstall. On Windows a file handle (a running daemon, the logger's

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…