Skip to main content
Module

x/denon/mod.ts>Runner

👀 Monitor any changes in your Deno application and automatically restart.
Very Popular
Latest
class Runner
Re-export
import { Runner } from "https://deno.land/x/denon@2.5.0/mod.ts";

Handle all the things related to process management. Scripts are built into executable commands that are executed by Deno.run() and managed in an Executable object to make available process events.

Constructors

new
Runner(config: RunnerConfig, args?: string[])

Methods

private
buildCliCommand(args: string[], global: ScriptOptions): Command
private
buildCommand(
cmd: string,
options: ScriptOptions,
cli: string[],
): Command
private
buildCommands(
script: string | ScriptObject,
global: ScriptOptions,
args: string[],
): Command[]
private
cmd(cmd: string[], options: ScriptOptions): Command
build(script: string): Command[]

Build the script, in whatever form it is declared in, to be compatible with Deno.run(). This function add flags, arguments and actions.

buildStringCommands(
script: string,
global: ScriptOptions,
args: string[],
): Command[]

Create an Execution object to handle the lifetime of the process that is executed.