claudy 0.2.2

Modern multi-provider launcher for Claude CLI
1
2
3
4
5
6
7
8
9
10
use crate::domain::context::{Context, DomainCommand};
use crate::ports::command_ports::CommandGateway;

pub fn dispatch_command(
    gateway: &dyn CommandGateway,
    ctx: &mut Context,
    command: DomainCommand,
) -> anyhow::Result<i32> {
    gateway.dispatch(ctx, command)
}