Skip to main content
Module

x/dtils/sh.ts

The best unofficial library of utilities for Deno applications
Go to Latest
import * as dtils from "https://deno.land/x/dtils@2.3.1/sh.ts";

Functions

Executes segments as a child process, printing the child's output. Throws if the child exits with a non-zero status

Executes segments as a child process. Returns errorLines and logLines containing all the lines written to the child's stdout and stderr, respectively. Throws if the child exits with a non-zero status.

Executes segments as a child process. Incrementally calls options.onLogLine and options.onErrorLine for each new line written to the child's stdout an stderr, respectively. Throws if the child exits with a non-zero status.

Executes segments as a child process. Throws if the child exits with a non-zero status.

Executes command in default shell, printing the command's output. Throws if command exits with a non-zero status

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.

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.

Executes command in default shell. Throws if command exits with a non-zero status.