API Reference
fromProcess()
Emit a process result with the fromProcess source factory.
Import
import { fromProcess } from "@graphrefly/ts";
Signature
function fromProcess(
program: string,
args: readonly string[] = [],
): Operator<never, ProcessResult>
Parameters
| Parameter | Type | Description |
|---|---|---|
program | string | Executable name or path. |
args | readonly string[] | Command-line arguments. |
Returns
A source operator that emits one ProcessResult.
Example
fromProcess("git", ["status"]);
Source
packages/ts/src/graph/sources.ts