(command, args, options)
| 37 | /** @type {Dependencies} */ |
| 38 | const defaultDependencies = { |
| 39 | spawn(command, args, options) { |
| 40 | const result = spawnSync(command, [...args], options); |
| 41 | return { |
| 42 | error: result.error, |
| 43 | status: result.status, |
| 44 | stderr: result.stderr?.toString() ?? null, |
| 45 | stdout: result.stdout?.toString() ?? null, |
| 46 | }; |
| 47 | }, |
| 48 | writeError(message) { |
| 49 | process.stderr.write(message); |
| 50 | }, |
no outgoing calls