Skip to content

Latest commit

 

History

History
80 lines (43 loc) · 1.49 KB

File metadata and controls

80 lines (43 loc) · 1.49 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @microsoft/rush-lib > IOperationRunnerContext > runWithTerminalAsync

IOperationRunnerContext.runWithTerminalAsync() method

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Invokes the specified callback with a terminal that is associated with this operation.

Will write to a log file corresponding to the phase and project, and clean it up upon completion.

Signature:

runWithTerminalAsync<T>(callback: (terminal: ITerminal, terminalProvider: ITerminalProvider) => Promise<T>, options: {
        createLogFile: boolean;
        logFileSuffix?: string;
    }): Promise<T>;

Parameters

Parameter

Type

Description

callback

(terminal: ITerminal<></>, terminalProvider: ITerminalProvider<></>) => Promise<T>

options

{ createLogFile: boolean; logFileSuffix?: string; }

Returns:

Promise<T>