Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.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.6.0/mod.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>