1 |
|
2 |
|
3 | const debug = require('debug')('elint:lib:exec')
|
4 | const execa = require('execa')
|
5 |
|
6 | const exec = pargram => (...argus) => {
|
7 | debug(`run: ${pargram} ${argus.join(' ')}`)
|
8 |
|
9 | const env = Object.assign({}, {
|
10 | FORCE_COLOR: 1
|
11 | }, process.env)
|
12 |
|
13 | return execa(pargram, [...argus], {
|
14 | env
|
15 | })
|
16 | }
|
17 |
|
18 | module.exports = exec
|