Fixed startup command
This commit is contained in:
parent
31585c4b6b
commit
85e6ab01ae
12
src/main.js
12
src/main.js
@ -44,9 +44,11 @@ function run(cmd) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(command) return console.log(run(command));
|
if(command) console.log(run(command));
|
||||||
else console.log(help());
|
else {
|
||||||
while(true) {
|
console.log(help());
|
||||||
const cmd = await ask('> ');
|
while(true) {
|
||||||
console.log(await run(cmd), '\n');
|
const cmd = await ask('> ');
|
||||||
|
console.log(await run(cmd), '\n');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user