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));
|
||||
else console.log(help());
|
||||
while(true) {
|
||||
const cmd = await ask('> ');
|
||||
console.log(await run(cmd), '\n');
|
||||
if(command) console.log(run(command));
|
||||
else {
|
||||
console.log(help());
|
||||
while(true) {
|
||||
const cmd = await ask('> ');
|
||||
console.log(await run(cmd), '\n');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user