UNPKG

782 BTypeScriptView Raw
1/// <reference types="node" />
2import * as Execa from 'execa';
3/**
4 * easy access to process.env
5 */
6export declare const env: NodeJS.ProcessEnv;
7/**
8 * run a command
9 *
10 * pass in a string to have it run with execa.shell(), or an file and array of strings for execa()
11 */
12export declare function x(cmd: string, options?: Execa.Options): Promise<Execa.ExecaReturns>;
13export declare function x(cmd: string, args: string[], options?: Execa.Options): Promise<Execa.ExecaReturns>;
14export declare namespace x {
15 function exec(cmd: string, args: string[], options?: Execa.Options): Execa.ExecaChildProcess;
16 function shell(cmd: string, options?: Execa.Options): Execa.ExecaChildProcess;
17 function stdout(cmd: string, args?: string[], options?: Execa.Options): Promise<string>;
18}