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