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;
function ask(q) {
return new Promise((resolve) => {
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
rl.question(q, a => {
rl.close();
resolve(a);
});
let ans = ""
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
rl.question(q, a => {
ans = a;
rl.close();
});
return ans;
}
// Function to run the publishing commands