2016-11-25 13:25:45 +01:00
|
|
|
import * as plugins from './npmci.plugins'
|
2017-03-08 14:50:41 +01:00
|
|
|
import { bash } from './npmci.bash'
|
2016-06-11 20:22:00 +02:00
|
|
|
|
2017-03-08 14:50:41 +01:00
|
|
|
export let command = async () => {
|
|
|
|
let wrappedCommand: string = ''
|
|
|
|
let argvArray = process.argv
|
|
|
|
for (let i = 3; i < argvArray.length; i++) {
|
|
|
|
wrappedCommand = wrappedCommand + argvArray[i]
|
|
|
|
if (i + 1 !== argvArray.length) { wrappedCommand = wrappedCommand + ' ' }
|
|
|
|
}
|
|
|
|
await bash(wrappedCommand)
|
|
|
|
return
|
2016-11-25 13:25:45 +01:00
|
|
|
}
|