* Executes a shell command once and waits for it to finish. * Unlike Executor#start, this does not stream output. * * @param {string} command - The shell command to execute. * @param {boolean} [alpine=false] - Whether to run the command in the Alpine sandbox (`true`) or Android e
(command, alpine = false)
| 243 | * .catch(console.error); |
| 244 | */ |
| 245 | execute(command, alpine = false) { |
| 246 | return new Promise((resolve, reject) => { |
| 247 | exec(resolve, reject, this.ExecutorType, "exec", [command, String(alpine)]); |
| 248 | }); |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Loads a native library from the specified path. |
no test coverage detected