rsclaw 2026.4.20

AI Agent Engine Compatible with OpenClaw
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;

use crate::cli::{DaemonCommand, GatewayCommand};
use crate::cmd::gateway::cmd_gateway;

/// Delegate daemon sub-commands to gateway equivalents.
pub async fn cmd_daemon(sub: DaemonCommand) -> Result<()> {
    let gw = match sub {
        DaemonCommand::Install => GatewayCommand::Install,
        DaemonCommand::Start => GatewayCommand::Start,
        DaemonCommand::Stop => GatewayCommand::Stop,
        DaemonCommand::Restart => GatewayCommand::Restart,
        DaemonCommand::Status => GatewayCommand::Status,
        DaemonCommand::Uninstall => GatewayCommand::Uninstall,
    };
    println!("note: `daemon` is a legacy alias for `gateway`");
    cmd_gateway(gw).await
}