Browse Source

Major refactoring

production
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

var cli = { var cli = {
nodeShellExec nodeShellExec
, get prompt() { , 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 return clii
} }
} }

+ 1047
- 975
index.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save