1use clap::{Parser, Subcommand};
4
5#[derive(Parser)]
7#[command(
8 name = "agent-policy",
9 version,
10 about = "Schema-first generator for coding-agent repo policies.",
11 long_about = "Generates AGENTS.md, CLAUDE.md, and .cursor/rules from a canonical agent-policy.yaml.\n\nSee https://github.com/CameronBrooks11/agent-policy for documentation."
12)]
13pub struct Cli {
14 #[command(subcommand)]
15 pub command: Command,
16}
17
18#[derive(Subcommand)]
20pub enum Command {
21 Init {
23 #[arg(long)]
25 force: bool,
26 },
27
28 Generate {
30 #[arg(long, short, default_value = "agent-policy.yaml")]
32 config: camino::Utf8PathBuf,
33 },
34
35 Check {
39 #[arg(long, short, default_value = "agent-policy.yaml")]
41 config: camino::Utf8PathBuf,
42 },
43}