Workstation API - v0.6.2
    Preparing search index...

    Interface Runner

    Command execution boundary, replaceable in tests or embedded integrations.

    interface Runner {
        report?(message: string): void;
        run(
            command: string,
            args: readonly string[],
            options?: RunOptions,
        ): Promise<CommandResult>;
    }

    Implemented by

    Index
    • Report a resource-level progress message when supported by the host.

      Parameters

      • message: string

      Returns void

    • Execute a command directly and return captured output and its exit code; spawn failures reject.

      Parameters

      • command: string
      • args: readonly string[]
      • Optionaloptions: RunOptions

      Returns Promise<CommandResult>