Skip to main content
Module

x/dtils/sh.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.0.0/sh.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]