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

x/dtils/devops/deps.ts>dtils.shCaptureIncremental

The best unofficial library of utilities for Deno applications
Go to Latest
function dtils.shCaptureIncremental
import { dtils } from "https://deno.land/x/dtils@2.2.0/devops/deps.ts";
const { shCaptureIncremental } = dtils;

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]