Skip to main content
Module

x/dtils/mod.ts>ExecOptions

The best unofficial library of utilities for Deno applications
Go to Latest
interface ExecOptions
import { type ExecOptions } from "https://deno.land/x/dtils@2.6.0/mod.ts";

Properties

optional
suppressColor: boolean

A shortcut to setting the NO_COLOR env var

optional
suppressPath: boolean

Normally, only the $PATH env var is sent to the child process. If true the $PATH env var will not be sent to the child process.

NOTE: This disables the automatic discovery of executables. You can use the getExecFromPath function to get the path to an executable before running the child process.

optional
cwd: string

The directory that the process should run in

optional
env: Record<string, string>

Any env variables that should be specified for the child process

optional
signal: AbortSignal

A signal to abort this process when necessary

optional
inheritStdio: boolean

If true stout and stdin will be inherited from the component. Defaults to true for sh and exec, but false for shCapture, shCaptureIncremental, shIgnore, execCapture, execIgnore, and execCaptureIncremental

optional
input: string

If specified, content will be written to the process stdin before it is closed. If unspecified, stdin will be inherited

Methods

optional
onSetup(params: ExecEventParams): unknown | Promise<unknown>

Called right after the child process is created. A returned promise will be awaited