Skip to main content
Module

x/dax/src/command.ts>CommandChild

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
class CommandChild
extends Promise<CommandResult>
import { CommandChild } from "https://deno.land/x/dax@0.34.0/src/command.ts";

Constructors

new
CommandChild(executor: (resolve: (value: CommandResult) => void, reject: (reason?: any) => void) => void, options?: { pipedStdoutBuffer: PipedBuffer | undefined; pipedStderrBuffer: PipedBuffer | undefined; killSignalController: KillSignalController | undefined; })

Methods

kill(signal?: Deno.Signal): void

Send a signal to the executing command's child process. Note that SIGTERM, SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP will cause the entire command to be considered "aborted" and if part of a command runs after this has occurred it will return a 124 exit code. Other signals will just be forwarded to the command.

Defaults to "SIGTERM".

stderr(): ReadableStream<Uint8Array>
stdout(): ReadableStream<Uint8Array>