Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/lib/core/runner.ts>Runner

Universal process manager built in Deno
Go to Latest
class Runner
extends BaseRunner
import { Runner } from "https://deno.land/x/pup@1.0.0-rc.5/lib/core/runner.ts";

Represents a task runner that executes tasks as regular processes. Extends the BaseRunner class.

Constructors

new
Runner(pup: Pup, processConfig: ProcessConfiguration)

Properties

private
optional
process: CommandChild

Methods

Creates the environment configuration for the process.

private
extendPath()

Extends the PATH environment variable with the path specified in the process configuration.

private
pipeToLogger(category: string, reader: ReadableStream<Uint8Array>)

Pipes the output of the running process to the logger.

private
prepareCommand(env: Record<string, string>)

Prepares the command to be executed based on the process configuration.

Waits for the process to end and catches any errors that might occur.

kill(_signal?: Deno.Signal)

Aborts the running process.

run(runningCallback: RunnerCallback): Promise<RunnerResult>

Executes the command specified in the process configuration.