* Executes the provided command, returning the process object. * @param {string} cmd * @param {?Object=} options * @return {!Object}
(cmd, options = {})
| 30 | * @return {!Object} |
| 31 | */ |
| 32 | function getOutput(cmd, options = {}) { |
| 33 | const p = spawnProcess(cmd, { |
| 34 | 'cwd': options.cwd || process.cwd(), |
| 35 | 'env': options.env || process.env, |
| 36 | 'stdio': options.stdio || 'pipe', |
| 37 | 'encoding': options.encoding || 'utf-8', |
| 38 | }); |
| 39 | return p; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Executes the provided command, returning its stdout. |
no test coverage detected