API Reference
runProcessWithOptions()
Run a caller-supplied process command through the graph environment driver.
Import
import { runProcessWithOptions } from "@graphrefly/ts";
Signature
function runProcessWithOptions(command: ProcessCommand): Operator<never, ProcessResult>
Parameters
| Parameter | Type | Description |
|---|---|---|
command | ProcessCommand | Process command object consumed by the graph-local process driver. |
Returns
A source operator that emits one ProcessResult.
Example
import { runProcessWithOptions } from "@graphrefly/ts";
import { graph } from "@graphrefly/ts/graph";
const status = graph().initNode(runProcessWithOptions({ program: "git", args: ["status"] }), []);
Source
packages/ts/src/graph/sources.ts