(command: string, options: SpawnOptions = {})
| 202 | } |
| 203 | |
| 204 | export async function execCommand(command: string, options: SpawnOptions = {}) { |
| 205 | const opts = { ...options, prettyCommand: command }; |
| 206 | if (process.platform === 'win32') { |
| 207 | await spawnAsync('cmd.exe', ['/C', command], opts); |
| 208 | } else { |
| 209 | await spawnAsync('sh', ['-c', command], opts); |
| 210 | } |
| 211 | |
| 212 | return true; |
| 213 | } |
| 214 | |
| 215 | export function* traverseUpDirectories({ |
| 216 | start, |
no test coverage detected