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