(command: string, options?: ExecOptions)
| 137 | } |
| 138 | |
| 139 | function execAsync(command: string, options?: ExecOptions): Promise<string> { |
| 140 | return new Promise((resolve, reject) => { |
| 141 | exec(command, options, (error, stdout) => { |
| 142 | if (error) { |
| 143 | reject(error) |
| 144 | } else { |
| 145 | resolve(stdout.toString()) |
| 146 | } |
| 147 | }) |
| 148 | }) |
| 149 | } |
no test coverage detected