(cmd)
| 6 | const isOwnerOrSudo = require('../lib/isOwner'); |
| 7 | |
| 8 | function run(cmd) { |
| 9 | return new Promise((resolve, reject) => { |
| 10 | exec(cmd, { windowsHide: true }, (err, stdout, stderr) => { |
| 11 | if (err) return reject(new Error((stderr || stdout || err.message || '').toString())); |
| 12 | resolve((stdout || '').toString()); |
| 13 | }); |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | async function hasGitRepo() { |
| 18 | const gitDir = path.join(process.cwd(), '.git'); |
no test coverage detected