Skip to main content

Module runner

Module runner 

Source
Expand description

The Run Stage tab: command builders for each stage, extra-flag validation, and subprocess jobs whose merged output streams to the page.

Structsยง

DawOpts
Options of the DAW sub-tab.
ParseOpts
Options of the Parse sub-tab.
ProduceOpts
Options of the Produce sub-tab.

Staticsยง

SHELL_UNSAFE ๐Ÿ”’
Shell metacharacters refused in user-typed flags (_SHELL_UNSAFE_RE).

Functionsยง

base ๐Ÿ”’
cmd_assemble
_cmd_assemble.
cmd_daw
_cmd_daw.
cmd_init
run_initโ€™s command: xil init --show NAME --type T --flat --season N.
cmd_master
_cmd_master.
cmd_parse
_cmd_parse: a blank script falls back to the first .md under scripts/{slug}/, then scripts/.
cmd_produce
_cmd_produce.
cmd_scan
_cmd_scan.
flag ๐Ÿ”’
header
The $ cmd header every run log starts with.
opt ๐Ÿ”’
pump ๐Ÿ”’
sanitize_extra_flags
_sanitize_extra_flags(flags): shell-style split, then refuse any token carrying a shell metacharacter.
start_job
_execute_cmd(cmd): start cmd in the workspace and register a job whose stdout and stderr lines stream to /jobs/{id}/stream. Returns the job id.