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

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

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

Executes command in default shell. Returns errorLines and logLines containing all the lines written to stdout and stderr, respectively. Throws if command exits with a non-zero status.

Parameters

command: string
optional
options: ExecOptions = [UNSUPPORTED]