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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Shared parse-shape for the embedded-document readers.
//!
//! `method`, `spec`, and `template` all take one optional name and a
//! `--list` flag; the shelf they read is the subcommand's identity.
//! No I/O, no business logic.

/// Read one embedded document, or list the shelf.
#[derive(Debug, clap::Args)]
pub struct ReadArgs {
    /// The document's short name.
    #[arg(required_unless_present = "list")]
    pub name: Option<String>,

    /// List every document on this shelf instead.
    #[arg(long, conflicts_with = "name")]
    pub list: bool,
}