Fixed startup command

This commit is contained in:
Zakary Timson 2024-10-30 11:06:19 -04:00
parent 31585c4b6b
commit 85e6ab01ae

View File

@ -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');
}
} }