Skip to main content
Module

x/dax/src/shell.ts>Context

Cross platform shell tools for Deno inspired by zx.
Extremely Popular
Go to Latest
class Context
import { Context } from "https://deno.land/x/dax@0.33.0/src/shell.ts";

Constructors

new
Context(opts: { stdin: ShellPipeReader; stdout: ShellPipeWriter; stderr: ShellPipeWriter; env: Env; commands: Record<string, CommandHandler>; shellVars: Record<string, string>; signal: AbortSignal; })

Properties

readonly
signal

Methods

applyChanges(changes: EnvChange[] | undefined)
getCommand(command: string)
getVar(key: string)
setEnvVar(key: string, value: string | undefined)
setShellVar(key: string, value: string | undefined)