Sfoglia il codice sorgente

Major refactoring

master
demo 3 anni fa
parent
commit
46553db21d
2 ha cambiato i file con 1053 aggiunte e 980 eliminazioni
  1. 6
    5
      cliverse.js
  2. 1047
    975
      index.js

+ 6
- 5
cliverse.js Vedi File

@@ -57,11 +57,12 @@ const readline = require("readline");
var cli = {
nodeShellExec
, get prompt() {
const clii = readline.createInterface({
input: process.stdin,
output: process.stdout
});
// clii.on("close", function() { });
const clii = readline.createInterface({ input: process.stdin, output: process.stdout });
clii.ask = function(q){
return new Promise((resolve, reject)=>{
clii.question(q, (answer)=>{ resolve(answer) })
})
}
return clii
}
}

+ 1047
- 975
index.js
File diff soppresso perché troppo grande
Vedi File


Loading…
Annulla
Salva