Browse Source

Major refactoring

pull/4/head
demo 3 years ago
parent
commit
46553db21d
2 changed files with 1053 additions and 980 deletions
  1. 6
    5
      cliverse.js
  2. 1047
    975
      index.js

+ 6
- 5
cliverse.js View 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 suppressed because it is too large
View File


Loading…
Cancel
Save