Polyman Documentation - v2.2.2
    Preparing search index...

    Interface ExecutionResult

    Result of a command execution containing output and status information.

    ExecutionResult

    const result = await executor.execute('./solution', { timeout: 1000 });
    if (result.success) {
    console.log(result.stdout);
    }
    interface ExecutionResult {
        stdout: string;
        stderr: string;
        exitCode: number;
        success: boolean;
        timedOut?: boolean;
        memoryExceeded?: boolean;
    }
    Index

    Properties

    stdout: string

    Standard output from the process

    stderr: string

    Standard error from the process

    exitCode: number

    Process exit code (0 = success)

    success: boolean

    Whether execution was successful

    timedOut?: boolean

    Whether process exceeded time limit

    memoryExceeded?: boolean

    Whether process exceeded memory limit