Skip to main content

run_headless

Function run_headless 

Source
pub fn run_headless(cli: Cli, registry: ProviderRegistry) -> ExitCode
Expand description

Drive one headless run from an already-parsed Cli — installs logging, builds the runtime, runs the engine, and emits per --output-format.

Split out of main_with so a unified front-end (the locode binary’s -p mode) can reuse the exact headless engine without re-parsing argv. When locode-exec retires, this logic migrates into the front-end crate (ADR-0019 amendment 2026-07-21).