Liking cljdoc? Tell your friends :D

grammar.runtime

Boundary: the only namespace that starts processes.

A Runtime is a port: something that can execute program text in one language and report what happened. ProcessRuntime is the adapter for a real interpreter: an argv prefix (e.g. ["/usr/bin/bash" "-r" "-c"]) and a complete environment. The program is passed as the last argv element, never through a shell, so the planner's text arrives byte for byte.

Boundary: the only namespace that starts processes.

A Runtime is a port: something that can execute program text in one
language and report what happened. ProcessRuntime is the adapter for a
real interpreter: an argv prefix (e.g. ["/usr/bin/bash" "-r" "-c"])
and a complete environment. The program is passed as the last argv
element, never through a shell, so the planner's text arrives byte for
byte.
raw docstring

IRuntimecljprotocol

executeclj

(execute rt code)

Run program text. {:argv :exit :out :out-bytes :err} when it ran; {:argv :error} when it never ran or did not finish.

Run program text. {:argv :exit :out :out-bytes :err} when it ran;
{:argv :error} when it never ran or did not finish.

runtime-idclj

(runtime-id rt)

Keyword naming this runtime; evidence ids derive from it.

Keyword naming this runtime; evidence ids derive from it.

runtime-langclj

(runtime-lang rt)

Language of the program text it accepts (:sh or :python).

Language of the program text it accepts (:sh or :python).
source

process-runtimeclj

(process-runtime {:keys [id lang argv env timeout-ms]
                  :or {lang :sh timeout-ms 10000}})

opts: :id :argv :env (complete; nothing is inherited), optional :lang (default :sh) and :timeout-ms (default 10000).

opts: :id :argv :env (complete; nothing is inherited), optional :lang
(default :sh) and :timeout-ms (default 10000).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close