(cmd)
| 3 | const { consola } = require('consola'); |
| 4 | |
| 5 | const execShellCommand = (cmd) => { |
| 6 | return new Promise((resolve, reject) => { |
| 7 | exec(cmd, (error, stdout, stderr) => { |
| 8 | if (error) { |
| 9 | console.warn(error); |
| 10 | reject(error); |
| 11 | } |
| 12 | resolve(stdout ? stdout : stderr); |
| 13 | }); |
| 14 | }); |
| 15 | }; |
| 16 | |
| 17 | const runCommand = async ( |
| 18 | command, |
no outgoing calls
no test coverage detected