vigiles API reference
    Preparing search index...

    Interface ToolStub

    A single fake binary: shadow the tool named name on PATH so that any invocation prints stdout (default ""), writes stderr (default none) to fd 2, and exits with exitCode (default 0). Argv is ignored in the MVP.

    interface ToolStub {
        exitCode?: number;
        name: string;
        stderr?: string;
        stdout?: string;
    }
    Index

    Properties

    exitCode?: number

    Exit code the fake returns. Default 0.

    name: string

    The binary name to shadow on PATH (e.g. "gh", "psql").

    stderr?: string

    Canned stderr the fake writes to fd 2. Default: none.

    stdout?: string

    Canned stdout the fake prints. Default "".