class Runner
extends BaseRunner
import { Runner } from "https://deno.land/x/pup@1.0.0-rc.11/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: CommandChildMethods
private
createEnvironmentConfig()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.
private
waitForProcessEnd()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.