Go modular
This commit is contained in:
committed by
Phil Kunz
parent
6edd51c6e6
commit
b6a85319b0
13
ts/mod_command/index.ts
Normal file
13
ts/mod_command/index.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import * as plugins from './npmci.plugins'
|
||||
import { bash } from './npmci.bash'
|
||||
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user