1
0
Fork 0
mirror of https://github.com/actions/toolkit synced 2025-05-11 09:32:58 +00:00

Expose ExecOptions interface (#322)

This commit is contained in:
Linda_pp 2020-04-10 01:52:24 +09:00 committed by GitHub
parent c010a271d9
commit a6a5d98be8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {