소스 검색

Fixed 0 arg scenario

production
guest 3 년 전
부모
커밋
61e4056e72
1개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 10
    2
      cliverse.js

+ 10
- 2
cliverse.js 파일 보기

function nodeShellExec() { function nodeShellExec() {


var args = Array.from(arguments); var args = Array.from(arguments);
var opts = args[2] = args[2] || {}
opts.title ? null : opts.title = `${args[0]} ${args[1] }`
if(args.length > 1){
var opts = args[2] = args[2] || {}
opts.title ? null : opts.title = `${args[0]} ${args[1] }`
}
else {
opts = {
title : `${args[0]}`
// , inherit: true, shell: true
}
}
// // const spawn = require('child_process').spawn; // // const spawn = require('child_process').spawn;
// const s = spawn( // const s = spawn(

Loading…
취소
저장