harmont-cli 0.0.5

Command-line client for the Harmont CI platform.
Documentation
use anyhow::Result;

use crate::cli::RunArgs;
use crate::context::RunContext;

mod local;

pub use local::handle as handle_local;

/// Top-level dispatcher for `hm run`. After the plan-4 cloud-plugin
/// cutover, `hm run` always runs locally via Docker.
///
/// # Errors
///
/// Returns Docker, pipeline-render, or scheduler errors surfaced by the
/// local orchestrator.
pub async fn handle(args: RunArgs, ctx: RunContext) -> Result<i32> {
    handle_local(args, ctx).await
}