GraphReFlyTS

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

ParameterTypeDescription
programstringExecutable name or path.
argsreadonly string[]Command-line arguments.

Returns

A source operator that emits one ProcessResult.

Example

fromProcess("git", ["status"]);

Source

packages/ts/src/graph/sources.ts