acp-agent 0.0.0

CLI for discovering, installing, launching, and proxying ACP agents from the public registry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Parser;

use acp_agent::commands::{Cli, CliExit, execute_cli};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let cli = Cli::parse();
    let stdout = std::io::stdout();
    let mut stdout = stdout.lock();

    match execute_cli(cli, &mut stdout).await? {
        CliExit::Success => Ok(()),
        CliExit::Code(code) => std::process::exit(code),
    }
}