Header menu logo Nao

ToolRuntime Module

Built-in runtimes plus resolution of runtime names to launcher commands.

Functions and values

Function or value Description

bash

Full Usage: bash

Returns: ToolRuntime
Returns: ToolRuntime

builtins

Full Usage: builtins

Returns: ToolRuntime list

Known runtimes, keyed by name.

Returns: ToolRuntime list

bun

Full Usage: bun

Returns: ToolRuntime
Returns: ToolRuntime

deno

Full Usage: deno

Returns: ToolRuntime
Returns: ToolRuntime

native

Full Usage: native

Returns: ToolRuntime

Run the command directly on the host (no wrapping).

Returns: ToolRuntime

node

Full Usage: node

Returns: ToolRuntime
Returns: ToolRuntime

python

Full Usage: python

Returns: ToolRuntime
Returns: ToolRuntime

resolve name

Full Usage: resolve name

Parameters:
    name : string

Returns: ToolRuntime

Resolve a runtime name to its definition. Unknown / empty names resolve to a runtime that launches the given command directly (i.e. the name is treated as the launcher executable itself), so arbitrary interpreters still work.

name : string
Returns: ToolRuntime

tsNode

Full Usage: tsNode

Returns: ToolRuntime
Returns: ToolRuntime

Type something to start searching.