We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e7b51e commit 033d5b5Copy full SHA for 033d5b5
codegen-util.js
@@ -22,13 +22,13 @@ const readline = require('readline');
22
* @returns {Promise<string>}
23
*/
24
const askQuestion = (query) => {
25
- const rl = readline.createInterface({
+ const interface = readline.createInterface({
26
input: process.stdin,
27
output: process.stdout,
28
});
29
return new Promise((resolve) =>
30
- rl.question(query, (ans) => {
31
- rl.close();
+ interface.question(`${query} `, (ans) => {
+ interface.close();
32
resolve(ans);
33
}),
34
);
0 commit comments