(command)
| 18 | * @returns {Promise<string>} |
| 19 | */ |
| 20 | export async function execute(command) { |
| 21 | return new Promise((resolve, reject) => exec(command, (error, stdout) => { |
| 22 | if (error) { |
| 23 | reject(`Failed to execute command ${command}`); |
| 24 | } else { |
| 25 | resolve(stdout); |
| 26 | } |
| 27 | })); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * @param {string} text |
no outgoing calls
no test coverage detected