harn-cli 0.7.25

CLI for the Harn programming language — run, test, REPL, format, and lint
pub(crate) mod common;
mod dlq;
mod fire;
mod inspect;
pub(crate) mod listener;
mod origin_guard;
mod queue;
mod recover;
mod replay;
mod resume;
pub(crate) mod role;
mod serve;
mod tls;

use crate::cli::{OrchestratorArgs, OrchestratorCommand};

pub(crate) async fn handle(args: OrchestratorArgs) -> Result<(), String> {
    match args.command {
        OrchestratorCommand::Serve(serve_args) => serve::run(serve_args).await,
        OrchestratorCommand::Inspect(inspect_args) => inspect::run(inspect_args).await,
        OrchestratorCommand::Fire(fire_args) => fire::run(fire_args).await,
        OrchestratorCommand::Replay(replay_args) => replay::run(replay_args).await,
        OrchestratorCommand::Resume(resume_args) => resume::run(resume_args).await,
        OrchestratorCommand::Dlq(dlq_args) => dlq::run(dlq_args).await,
        OrchestratorCommand::Queue(queue_args) => queue::run(queue_args).await,
        OrchestratorCommand::Recover(recover_args) => recover::run(recover_args).await,
    }
}