no answer? hope this fixes it!
This commit is contained in:
parent
2d342f9aaa
commit
a6b33dc8d1
1 changed files with 9 additions and 9 deletions
18
index.mjs
18
index.mjs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue