Header menu logo Nao

RuntimePolicy Module

Parsing of the session runtime-mode string into a RuntimePolicy.

Functions and values

Function or value Description

parse mode

Full Usage: parse mode

Parameters:
    mode : string

Returns: RuntimePolicy
 Parse a runtime-mode string:
  - "" / "native" / "host"  -> HostDefault
  - "docker" / "container"   -> Containerized None
  - "docker:"         -> Containerized (Some image)
  - any other value          -> ForceRuntime value (e.g. "deno")
mode : string
Returns: RuntimePolicy

Type something to start searching.