cargo-ai 0.2.0

Build lightweight AI agents with Cargo. Powered by Rust. Declared in JSON.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! CLI parser definition for `cargo ai add guidance`.
use clap::{Arg, Command};

/// Builds the `guidance` subcommand schema.
pub fn command() -> Command {
    Command::new("guidance")
        .about("Write a local guidance file for Cargo AI agent authoring")
        .arg(
            Arg::new("style")
                .long("style")
                .help("Guidance style to write")
                .required(true)
                .value_name("STYLE")
                .value_parser(["codex"])
                .num_args(1),
        )
}