spec-driven-docs 0.8.1

Spec-driven documentation: current specs, immutable decision records, and executable gates kept coherent for people and coding agents.
Documentation
//! `ki` subcommand: parse-shape.
//!
//! Holds the clap derive structs only. No I/O, no business logic.

use camino::Utf8PathBuf;
use clap::Subcommand;

/// Read the known-issue zone.
#[derive(Debug, clap::Args)]
pub struct KiArgs {
    /// The verb to run.
    #[command(subcommand)]
    pub command: KiCommand,
}

/// Every verb `sdd ki` offers.
#[derive(Debug, Subcommand)]
pub enum KiCommand {
    /// List every known-issue record and its two axes.
    List(ListArgs),
}

/// List every known-issue record and its two axes.
#[derive(Debug, clap::Args)]
pub struct ListArgs {
    /// The repository to read; absolute, or the working directory.
    #[arg(long, default_value = ".")]
    pub target: Utf8PathBuf,

    /// Print one JSON array instead of text.
    #[arg(long)]
    pub json: bool,
}