(command, args)
| 9 | const execFileSync = require('child_process').execFileSync; |
| 10 | |
| 11 | const exec = (command, args) => { |
| 12 | console.log('> ' + [command].concat(args).join(' ')); |
| 13 | const options = { |
| 14 | cwd: process.cwd(), |
| 15 | env: process.env, |
| 16 | stdio: 'pipe', |
| 17 | encoding: 'utf-8', |
| 18 | }; |
| 19 | return execFileSync(command, args, options); |
| 20 | }; |
| 21 | |
| 22 | const isGit = () => { |
| 23 | try { |
no test coverage detected