Module

x/dax/src/shell.ts>Context

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
class Context
import { Context } from "https://dotland.deno.dev/x/dax@0.39.2/src/shell.ts";

Constructors

new
Context(opts: ContextOptions)

Methods

applyChanges(changes: EnvChange[] | undefined)
error(text: string): Promise<ExecuteResult> | ExecuteResult
error(code: number, text: string): Promise<ExecuteResult> | ExecuteResult
error(codeOrText: number | string, maybeText: string | undefined): Promise<ExecuteResult> | ExecuteResult
getCommand(command: string)
getFdReader(fd: number)
getFdWriter(fd: number)
getVar(key: string)
setEnvVar(key: string, value: string | undefined)
setShellVar(key: string, value: string | undefined)
withInner(opts: Partial<Pick<ContextOptions, "stdout" | "stderr" | "stdin">>)