@azure-tools/extension
Version:
Yarn-Based extension aquisition (for Azure Open Source Projects)
20 lines • 613 B
TypeScript
/// <reference types="node" />
import { SpawnOptions, ChildProcess } from "child_process";
interface MoreOptions extends SpawnOptions {
onCreate?(cp: ChildProcess): void;
onStdOutData?(chunk: any): void;
onStdErrData?(chunk: any): void;
}
export interface ExecResult {
stdout: string;
stderr: string;
/**
* Union of stdout and stderr.
*/
log: string;
error: Error | null;
code: number | null;
}
export declare const execute: (command: string, cmdlineargs: Array<string>, options?: MoreOptions) => Promise<ExecResult>;
export {};
//# sourceMappingURL=exec-cmd.d.ts.map