@applitools/utils
Version:
35 lines (34 loc) • 937 B
TypeScript
/// <reference types="node" />
import type { ExecOptions, SpawnOptions } from 'child_process';
export declare function execute(command: string, options?: ExecOptions): Promise<{
stdout: string;
stderr: string;
code: number;
}>;
export declare function executeAndControlProcess(command: string, args?: any[], options?: {
spawnOptions?: SpawnOptions;
timeout?: number;
}): Promise<{
subProcess: undefined;
exitPromise: Promise<{
stdout: string;
stderr: string;
code: number;
}>;
}>;
export declare function executeProcess(command: string, args?: any[], options?: {
spawnOptions?: SpawnOptions;
timeout?: number;
}): Promise<{
stdout: string;
stderr: string;
code: number;
}>;
export declare function sh(command: string, options?: {
spawnOptions?: SpawnOptions;
timeout?: number;
}): Promise<{
stdout: string;
stderr: string;
code: number;
}>;