Skip to main content

Module run

Module run 

Source
Expand description

Runtime: invoking resolved commands, streaming their output, and mapping exit codes through fdl. Command resolution and execution.

Merges structured config sections into CLI arguments, resolves named command presets, and spawns the target process (directly or through Docker when a docker: service is declared).

Functionsยง

config_to_args
Translate a resolved config into CLI arguments for the entry point.
exec_command
Execute a sub-command, optionally with a named preset (inline command).
exec_script
Run an inline run: script, optionally wrapped in Docker.
print_command_help
Print help for a sub-command (its arguments, nested commands, and entry). Orchestrates the per-section helpers below.
print_preset_help
Print help for a named preset command nested inside a sub-command.
print_project_help
Print the project help with scripts and commands.
print_run_help
Print help for a run:-kind command. Shows the inline script that will execute and the Docker service (if any). run: commands do not forward argv, so there are no flags or positionals to document.