cargo-governor 2.0.3

Machine-First, LLM-Ready, CI/CD-Native release automation tool for Rust crates
Documentation
//! Agent-facing CLI options.

use clap::{Parser, Subcommand};

/// Agent subcommands.
#[derive(Subcommand, Debug)]
pub enum AgentSubCommands {
    /// Print agent/release context.
    Context(ContextOpts),
    /// Generate agent-facing docs and schemas from the built-in context.
    ExportDocs(ExportDocsOpts),
}

/// Options for `agent context`.
#[derive(Parser, Debug, Clone)]
pub struct ContextOpts {
    /// Context output format: json or markdown.
    #[arg(long)]
    pub format: Option<String>,
}

/// Options for `agent export-docs`.
#[derive(Parser, Debug, Clone)]
pub struct ExportDocsOpts {
    /// Output directory for generated docs and schemas.
    #[arg(long, default_value = ".")]
    pub output_dir: String,
}