mecha10-cli 0.8.0

Mecha10 CLI tool
Documentation
//! Command handlers (orchestration layer)
//!
//! Handlers orchestrate services to implement command logic, sitting between the CLI interface
//! (commands) and business logic (services).

macro_rules! remote_dispatch_handler {
    ($name:ident, $cmd:ty, $inner:ident) => {
        /// Handle the command
        pub async fn $name(ctx: &mut crate::context::CliContext, command: &$cmd) -> anyhow::Result<()> {
            match command {
                <$cmd>::Remote => $inner(ctx).await,
            }
        }
    };
}

pub mod add;
pub mod auth;
pub mod build;
pub mod cache;
pub mod config;
pub mod dev;
pub mod diagnostics;
pub mod format;
pub mod init;
pub mod lint;
pub mod logs;
pub mod model;
pub mod ps;
pub mod robot;
pub mod run;
pub mod setup;
pub mod sim;
pub mod stop;
pub mod target;
pub mod topics;
pub mod topology;
pub mod train;
pub mod upload;