Skip to main content
Module

x/dtils/mod.unstable.ts>shCaptureIncremental

The best unofficial library of utilities for Deno applications
Go to Latest
function shCaptureIncremental
import { shCaptureIncremental } from "https://deno.land/x/dtils@2.5.0/mod.unstable.ts";

Executes command in default shell. Incrementally calls options.onLogLine and options.onErrorLine for each new line written to stdout an stderr, respectively. Throws if command exits with a non-zero status.

Parameters

command: string
optional
options: ExecCaptureIncrementalOptions = [UNSUPPORTED]

Returns

Promise<void>