@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
38 lines (33 loc) • 677 B
TypeScript
import type { ReadStream } from "fs-extra";
declare module "child-process-promise" {
function exec(
cmd: string,
options?: {
env?: Record<string, string>;
},
): Promise<{
stdout: string;
}>;
type Stdio = "inherit" | "pipe";
type SpawnOptions = {
stdio?: Stdio | Stdio[];
shell?: boolean | string;
env?: Record<string, string>;
};
function spawn(
cmd: string,
options?: SpawnOptions,
): Promise<{
stdout: string;
}>;
function spawn(
cmd: string,
args: string[],
options?: SpawnOptions,
): Promise<unknown> & {
childProcess: {
stdout: ReadStream;
kill: () => void;
};
};
}