Skip to main content

run

Function run 

Source
pub async fn run(args: PipelinesArgs) -> Result<()>
Expand description

Print the discovery envelope JSON (all pipelines) to stdout.

A repo with no .hm/ directory (or one with no .py/.ts files) declares no pipelines and yields the empty envelope rather than an error — the backend fans discovery out across every repo in an installation, most of which carry no pipelines. Both Python and TypeScript pipelines emit the same discovery envelope; a repo declaring both languages resolves to Python via detect::detect_language_python_first (the fully-supported backend path), matching hm render.

§Errors

Returns an error if the engine can’t start or the DSL runtime fails to evaluate the pipelines.