codymaster 4.5.3 → 4.5.4
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/package.json +1 -1
- package/scripts/postinstall.js +2 -27
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -283,35 +283,10 @@ const printMenu = () => {
|
|
|
283
283
|
console.log('');
|
|
284
284
|
console.log(` ${W}${BOLD}${isVi ? '📚 Tài liệu:' : '📚 Documentation:'}${NC} ${C}https://cody.todyle.com/docs${NC}`);
|
|
285
285
|
console.log('');
|
|
286
|
-
console.log(` ${DIM}Press 'q' to exit.${NC}`);
|
|
287
286
|
};
|
|
288
287
|
|
|
289
|
-
const main =
|
|
290
|
-
|
|
291
|
-
printMenu();
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
const readline = require('readline');
|
|
296
|
-
const rl = readline.createInterface({
|
|
297
|
-
input: process.stdin,
|
|
298
|
-
output: process.stdout
|
|
299
|
-
});
|
|
300
|
-
|
|
301
|
-
const question = (query) => new Promise(resolve => rl.question(query, resolve));
|
|
302
|
-
|
|
303
|
-
while (true) {
|
|
304
|
-
printMenu();
|
|
305
|
-
const answer = await question(' > ');
|
|
306
|
-
if (answer.toLowerCase() === 'q') break;
|
|
307
|
-
if (parseInt(answer) >= 1 && parseInt(answer) <= 12) {
|
|
308
|
-
showSkillGuide(answer);
|
|
309
|
-
await question('');
|
|
310
|
-
} else if (answer === '') {
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
rl.close();
|
|
288
|
+
const main = () => {
|
|
289
|
+
printMenu();
|
|
315
290
|
};
|
|
316
291
|
|
|
317
292
|
main();
|