spec-driven-docs 0.18.0

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
18
//! `self-manifest` subcommand: runtime-shape.
//!
//! Writes the payload record of the canon checkout; refuses anywhere else. The generation lives in `services::self_manifest`.

use crate::context::AppContext;
use crate::error::AppError;
use crate::output;
use crate::services::self_manifest::regenerate;

/// Write the canon checkout's payload record.
///
/// # Errors
///
/// [`AppError::Refused`] outside the canon checkout; I/O errors otherwise.
pub fn run(ctx: &AppContext) -> Result<(), AppError> {
    output::line(regenerate(&ctx.cwd)?);
    Ok(())
}