* @param {string} app * @returns {Promise }
(app)
| 22 | * @returns {Promise<string>} |
| 23 | */ |
| 24 | function linuxAppPath(app) { |
| 25 | return new Promise((resolve, reject) => { |
| 26 | exec(`which ${app}`, (err, result) => { |
| 27 | if (err) { |
| 28 | reject(err); |
| 29 | } else { |
| 30 | resolve(result.trim()); |
| 31 | } |
| 32 | }); |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * @returns {Promise<string>} |
no outgoing calls
no test coverage detected
searching dependent graphs…