drupflare/drangler - v0.1.0
    Preparing search index...

    Interface Context

    Everything a command is allowed to touch.

    Commands take a context and nothing else, so the gate lane substitutes all five seams at once and no spec reaches a process, a socket, a clock or the filesystem. A command that reached for a global would be the one place the suite could not cover.

    interface Context {
        cwd: string;
        env: ProcessEnv;
        fetch: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        files: FileHost;
        io: Io;
        now: () => Date;
        runner: CommandRunner;
    }
    Index
    cwd: string
    env: ProcessEnv
    fetch: (input: string | URL | Request, init?: RequestInit) => Promise<Response>
    files: FileHost
    io: Io
    now: () => Date