no answer? hope this fixes it!

This commit is contained in:
The Ghost of FOSS' Past 2024-10-02 17:19:39 -05:00
parent 2d342f9aaa
commit a6b33dc8d1

View file

@ -22,16 +22,16 @@ const maxDepthCount = 11
let ags_modelfile; let ags_modelfile;
function ask(q) { function ask(q) {
return new Promise((resolve) => { let ans = ""
const rl = readline.createInterface({ const rl = readline.createInterface({
input: process.stdin, input: process.stdin,
output: process.stdout, output: process.stdout,
});
rl.question(q, a => {
rl.close();
resolve(a);
});
}); });
rl.question(q, a => {
ans = a;
rl.close();
});
return ans;
} }
// Function to run the publishing commands // Function to run the publishing commands