intercept-shell
拦截交互式的shell,并作出响应
自动回答如Inquirer.js
的input
confirm
list
问题
var InterceptShell = ; let interceptShell = // 确认问题的回答 { console; // console.log('标题是', obj.title); } // 列表问题 { ; } // 输入问题 { ; }; var childProcess = cp; childProcessstdout; interceptShell; // 传入childProcess