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.0.0-beta.5/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

Methods

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

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