(command, args, options = {})
| 106 | } |
| 107 | |
| 108 | execCommand(command, args, options = {}) { |
| 109 | const result = spawnSync(command, args, { |
| 110 | stdio: 'inherit', |
| 111 | ...options |
| 112 | }); |
| 113 | |
| 114 | if (result.status !== 0) { |
| 115 | throw new Error(`🤯 命令 '${command} ${args.join(' ')}' 无效`); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | getPublicUrl(repository, cname) { |
| 120 | if (cname) { |