Files
compiler-explorer/lib/execution/execution-env.interfaces.ts
T

19 lines
628 B
TypeScript

import {ExecutionParams} from '../../types/compilation/compilation.interfaces.js';
import {
BasicExecutionResult,
ExecutableExecutionOptions,
UnprocessedExecResult,
} from '../../types/execution/execution.interfaces.js';
export interface IExecutionEnvironment {
downloadExecutablePackage(hash: string): Promise<void>;
execute(params: ExecutionParams): Promise<UnprocessedExecResult>;
execBinary(
executable: string,
maxSize: number,
executeParameters: ExecutableExecutionOptions,
homeDir: string,
extraConfiguration?: any,
): Promise<BasicExecutionResult>;
}