Fixed startup command
This commit is contained in:
parent
31585c4b6b
commit
85e6ab01ae
@ -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 {
|
||||||
|
console.log(help());
|
||||||
while(true) {
|
while(true) {
|
||||||
const cmd = await ask('> ');
|
const cmd = await ask('> ');
|
||||||
console.log(await run(cmd), '\n');
|
console.log(await run(cmd), '\n');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user