Skip to main content

harmont_cli/commands/run/
mod.rs

1use anyhow::Result;
2
3use crate::cli::RunArgs;
4use crate::context::RunContext;
5
6mod local;
7mod render;
8
9pub use local::handle as handle_local;
10
11/// Top-level dispatcher for `hm run`. After the plan-4 cloud-plugin
12/// cutover, `hm run` always runs locally via Docker.
13///
14/// # Errors
15///
16/// Returns Docker, pipeline-render, or scheduler errors surfaced by the
17/// local orchestrator.
18pub async fn handle(args: RunArgs, ctx: RunContext) -> Result<i32> {
19    handle_local(args, ctx).await
20}