@mthanhlm/autodev 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/bin/install.js +17 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/bin/install.js
CHANGED
|
@@ -514,9 +514,24 @@ Examples:
|
|
|
514
514
|
function askScope() {
|
|
515
515
|
return new Promise(resolve => {
|
|
516
516
|
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
517
|
-
|
|
517
|
+
console.log(`
|
|
518
|
+
${cyan}autodev install${reset}
|
|
519
|
+
|
|
520
|
+
Runtime:
|
|
521
|
+
Claude Code only
|
|
522
|
+
|
|
523
|
+
Location:
|
|
524
|
+
${cyan}1${reset}) Global ${yellow}(Recommended)${reset} -> ~/.claude
|
|
525
|
+
${cyan}2${reset}) Local -> ./.claude
|
|
526
|
+
`);
|
|
527
|
+
rl.question(`Select install location ${yellow}[1]${reset}: `, answer => {
|
|
518
528
|
rl.close();
|
|
519
|
-
|
|
529
|
+
const trimmed = answer.trim().toLowerCase();
|
|
530
|
+
if (trimmed === '2' || trimmed === 'l' || trimmed === 'local') {
|
|
531
|
+
resolve('local');
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
resolve('global');
|
|
520
535
|
});
|
|
521
536
|
});
|
|
522
537
|
}
|