(command, args)
| 93 | } |
| 94 | |
| 95 | function runCommand(command, args) { |
| 96 | output.write(`> ${command} ${args.join(' ')}\n`); |
| 97 | const ret = spawnSync(command, args, { stdio: 'inherit' }); |
| 98 | if (ret.error) { |
| 99 | output.write(`命令执行异常: ${ret.error.message}\n`); |
| 100 | } |
| 101 | return ret; |
| 102 | } |
| 103 | |
| 104 | function isSuccess(ret) { |
| 105 | return ret.status === 0 && !ret.error; |
no test coverage detected