Commit 0b3daa25 by 宋毅

渠道增加

parent 7f2e4488
......@@ -25,7 +25,7 @@ class ExecClient {
return {stdout, stderr};
}
async newExec(cmd) {
async newExec(cmd, options) {
//await后面表达式返回的promise对象,是then的语法糖,await返回then函数的返回值
//异常需要try/catch自己捕获或外部catch捕获
const {stdout, stderr} = await exec(cmd, options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment