Explorar el Código

cliverse prompt fixes and new build

master
pb hace 3 años
padre
commit
8745c0d6e3
Se han modificado 3 ficheros con 2491 adiciones y 208 borrados
  1. 12
    6
      cliverse.js
  2. 2478
    202
      i.js
  3. 1
    0
      package.json

+ 12
- 6
cliverse.js Ver fichero

var cli = { var cli = {
nodeShellExec nodeShellExec
, get prompter() { , get prompter() {
const clii = readline.createInterface({ input: process.stdin, output: process.stdout }); var prompt_interface = {
clii.ask = function(q){ ask : function(q){
return new Promise((resolve, reject)=>{ // Needs to be serialized. Parallel asks are not possible.
clii.question(q, (answer)=>{ resolve(answer) }) const clii = readline.createInterface({ input: process.stdin, output: process.stdout });
}) return new Promise((resolve, reject)=>{
clii.question(q, (answer)=>{
clii.close();
resolve(answer)
})
})
}
} }
return clii return prompt_interface
} }
, prompt , prompt
} }

+ 2478
- 202
i.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 1
- 0
package.json Ver fichero

"crossfilter2": "^1.5.4", "crossfilter2": "^1.5.4",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"glob": "^7.1.2", "glob": "^7.1.2",
"uuid": "^8.3.2",
"tree-kill": "^1.2.2" "tree-kill": "^1.2.2"
}, },
"bin": { "bin": {

Cargando…
Cancelar
Guardar