Skip to main content

Module sandbox

Module sandbox 

Source

Structs§

SandboxResult

Functions§

batch_execute
batch_execute_in
Same as batch_execute, but every task runs in cwd.
canonical_language
The language language runs as (one of supported_languages), after aliases (py, node, bash, …) and case; None when unsupported.
execute
Runs a snippet in the sandbox runtime of language.
execute_in
Same as execute, but runs the snippet in cwd (GH #1666).
is_shell_language
Whether language resolves to the shell runtime. Every alias must take the ctx_shell allowlist preflight (GHSA-rxv5-4c3x-g4q6 B), so callers use this instead of comparing against "shell".
supported_languages