UNPKG

679 BTypeScriptView Raw
1import execa = require('execa');
2export interface ExecaOptions extends execa.Options {
3 /**
4 * If true - it will reject a promise with an error and NOT do `process.exit`
5 */
6 noProcessExit?: boolean;
7}
8export declare function proxyCommand(cmd: string, args?: string[], opt?: ExecaOptions): Promise<void>;
9export declare function execCommand(cmd: string, opt?: ExecaOptions): Promise<void>;
10export declare function execWithArgs(cmd: string, args?: string[], opt?: ExecaOptions): Promise<void>;
11export declare function execShell(cmd: string, opt?: ExecaOptions): Promise<void>;
12export declare function logExec(cmd: string, args?: string[], opt?: ExecaOptions): void;