Module

x/dax/src/command_handler.ts>CommandContext

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

Context of the currently executing command.

Methods

getter
args(): string[]
getter
cwd(): string
getter
env(): Record<string, string>
getter
stdin(): CommandPipeReader
getter
stdout(): CommandPipeWriter
getter
stderr(): CommandPipeWriter
getter
signal(): KillSignal
error(message: string): Promise<ExecuteResult> | ExecuteResult
error(code: number, message: string): Promise<ExecuteResult> | ExecuteResult