11 lines
250 B
TypeScript
11 lines
250 B
TypeScript
import {Subprocess} from './Subprocess'
|
|
import {getPathVariable} from './modules'
|
|
|
|
export async function run(command: string, args: string[]) {
|
|
return new Subprocess(command, args, {
|
|
...process.env,
|
|
PATH: getPathVariable(),
|
|
})
|
|
.run()
|
|
}
|