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