(command, args, options = {})
| 848 | } |
| 849 | |
| 850 | function runBuffer(command, args, options = {}) { |
| 851 | const result = runCommand(command, args, options); |
| 852 | if (result.status !== 0) { |
| 853 | throw new Error( |
| 854 | `${[command, ...args].join(" ")} failed with ${result.status}\n${result.stderr}`, |
| 855 | ); |
| 856 | } |
| 857 | return result.stdoutBuffer ?? Buffer.alloc(0); |
| 858 | } |
| 859 | |
| 860 | function runCommand(command, args, options = {}) { |
| 861 | if (verbose) { |
no test coverage detected