mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-24 00:18:05 +08:00
Expose ExecOptions interface (#322)
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import * as im from './interfaces'
|
import {ExecOptions} from './interfaces'
|
||||||
import * as tr from './toolrunner'
|
import * as tr from './toolrunner'
|
||||||
|
|
||||||
|
export {ExecOptions}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exec a command.
|
* Exec a command.
|
||||||
* Output will be streamed to the live console.
|
* Output will be streamed to the live console.
|
||||||
@@ -14,7 +16,7 @@ import * as tr from './toolrunner'
|
|||||||
export async function exec(
|
export async function exec(
|
||||||
commandLine: string,
|
commandLine: string,
|
||||||
args?: string[],
|
args?: string[],
|
||||||
options?: im.ExecOptions
|
options?: ExecOptions
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const commandArgs = tr.argStringToArray(commandLine)
|
const commandArgs = tr.argStringToArray(commandLine)
|
||||||
if (commandArgs.length === 0) {
|
if (commandArgs.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user