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