metame-cli 1.3.4 → 1.3.5
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/index.js +3 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -571,6 +571,7 @@ if (isDaemon) {
|
|
|
571
571
|
const DAEMON_SCRIPT = path.join(METAME_DIR, 'daemon.js');
|
|
572
572
|
|
|
573
573
|
if (subCmd === 'init') {
|
|
574
|
+
(async () => {
|
|
574
575
|
const readline = require('readline');
|
|
575
576
|
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
576
577
|
const ask = (q) => new Promise(r => rl.question(q, r));
|
|
@@ -694,6 +695,8 @@ if (isDaemon) {
|
|
|
694
695
|
|
|
695
696
|
rl.close();
|
|
696
697
|
process.exit(0);
|
|
698
|
+
})();
|
|
699
|
+
return; // Prevent further execution while async runs
|
|
697
700
|
}
|
|
698
701
|
|
|
699
702
|
if (subCmd === 'install-launchd') {
|