mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
19 lines
853 B
TypeScript
19 lines
853 B
TypeScript
/// <reference types="node" />
|
|
declare type ExecuteOutput = {
|
|
stdout: string;
|
|
stderr: string;
|
|
};
|
|
/** Wrapper around the GitHub toolkit exec command which returns the output.
|
|
* Also allows you to easily toggle the current working directory.
|
|
*
|
|
* @param {string} cmd - The command to execute.
|
|
* @param {string} cwd - The current working directory.
|
|
* @param {boolean} silent - Determines if the in/out should be silenced or not.
|
|
* @param {boolean} ignoreReturnCode - Determines whether to throw an error
|
|
* on a non-zero exit status or to leave implementation up to the caller.
|
|
*/
|
|
export declare function execute(cmd: string, cwd: string, silent: boolean, ignoreReturnCode?: boolean): Promise<ExecuteOutput>;
|
|
export declare function stdout(data: Buffer | string): void;
|
|
export declare function stderr(data: Buffer | string): void;
|
|
export {};
|