blob: 875ac7f3812b909bdb77492be481ac91f8ad3833 [file] [log] [blame] [raw]
import {ResultLine} from '../resultline/resultline.interfaces';
export type FilenameTransformFunc = (filename: string) => string;
export type UnprocessedExecResult = {
code: number;
okToCache: boolean;
filenameTransform: FilenameTransformFunc;
stdout: string;
stderr: string;
execTime: string;
timedOut: boolean;
};
export type TypicalExecutionFunc = (
executable: string,
args: string[],
execOptions: object,
) => Promise<UnprocessedExecResult>;
export type BasicExecutionResult = {
code: number;
okToCache: boolean;
filenameTransform: FilenameTransformFunc;
stdout: ResultLine[];
stderr: ResultLine[];
execTime: string;
timedOut: boolean;
};
export type ExecutableExecutionOptions = {
args: string[];
stdin: string;
ldPath: string[];
env: any;
};