1 | import { Observable } from 'rxjs';
|
2 | export interface IExec {
|
3 | code: number;
|
4 | cmd: string;
|
5 | stdout?: string;
|
6 | stderr?: string;
|
7 | }
|
8 | export interface IExecOptions {
|
9 | silent?: boolean;
|
10 | onExit?: () => void;
|
11 | }
|
12 | export declare class ExecutionError extends Error {
|
13 | code: number;
|
14 | constructor(error?: string, code?: number);
|
15 | setCode(code: number): this;
|
16 | }
|
17 | export declare function exec(cmd: string, options?: IExecOptions): IExec;
|
18 | export declare function execWithin(path: string, cmd: string, options?: IExecOptions): IExec;
|
19 | export declare function execAsync(cmd: string, options?: IExecOptions): Promise<IExec>;
|
20 | export declare function execWithinAsync(path: string, cmd: string, options?: IExecOptions): Promise<IExec>;
|
21 | export declare function exec$(cmd: string): Observable<IExec>;
|