mirror of https://github.com/actions/toolkit
Expose ExecOptions interface (#322)
parent
c010a271d9
commit
a6a5d98be8
|
@ -1,6 +1,8 @@
|
|||
import * as im from './interfaces'
|
||||
import {ExecOptions} from './interfaces'
|
||||
import * as tr from './toolrunner'
|
||||
|
||||
export {ExecOptions}
|
||||
|
||||
/**
|
||||
* Exec a command.
|
||||
* Output will be streamed to the live console.
|
||||
|
@ -14,7 +16,7 @@ import * as tr from './toolrunner'
|
|||
export async function exec(
|
||||
commandLine: string,
|
||||
args?: string[],
|
||||
options?: im.ExecOptions
|
||||
options?: ExecOptions
|
||||
): Promise<number> {
|
||||
const commandArgs = tr.argStringToArray(commandLine)
|
||||
if (commandArgs.length === 0) {
|
||||
|
|
Loading…
Reference in New Issue