aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/@actions/exec/lib/toolrunner.d.ts
blob: c2a622e896821b287711734baea176a7e0365651 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import * as events from 'events';
import * as im from './interfaces';
export declare class ToolRunner extends events.EventEmitter {
    constructor(toolPath: string, args?: string[], options?: im.ExecOptions);
    private toolPath;
    private args;
    private options;
    private _debug;
    private _getCommandString;
    private _processLineBuffer;
    private _getSpawnFileName;
    private _getSpawnArgs;
    private _endsWith;
    private _isCmdFile;
    private _windowsQuoteCmdArg;
    private _uvQuoteCmdArg;
    private _cloneExecOptions;
    private _getSpawnOptions;
    /**
     * Exec a tool.
     * Output will be streamed to the live console.
     * Returns promise with return code
     *
     * @param     tool     path to tool to exec
     * @param     options  optional exec options.  See ExecOptions
     * @returns   number
     */
    exec(): Promise<number>;
}
/**
 * Convert an arg string to an array of args. Handles escaping
 *
 * @param    argString   string of arguments
 * @returns  string[]    array of arguments
 */
export declare function argStringToArray(argString: string): string[];