(cmd)
| 1 | import { exec } from 'child_process'; |
| 2 | |
| 3 | export function runCommand(cmd) { |
| 4 | return new Promise((resolve, reject) => { |
| 5 | exec(cmd, (error, stdout, stderr) => { |
| 6 | if (error) { |
| 7 | reject(error); |
| 8 | } |
| 9 | |
| 10 | resolve(stdout || stderr); |
| 11 | }); |
| 12 | }); |
| 13 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…