Skip to main content

Module delta

Module delta 

Source
Expand description

Spec deltas of a change (openspec/changes/<id>/specs/<capability>/spec.md) and the requirement names of the main specs (openspec/specs/**/spec.md).

OpenSpec returns scenarios only as raw text; speccoder parses them itself because they are the acceptance examples.

Structs§

Delta
One delta file.
Rename
A RENAMED pair.
Requirement
A requirement of an ADDED, MODIFIED or REMOVED section.
Scenario
A #### Scenario: block.

Enums§

Operation
What a delta section does to the main spec.

Functions§

main_requirements
Requirement names (normalised) per capability of the main specs under specs_dir (openspec/specs), each file’s text given by read.
normalise
OpenSpec’s name matching: case-insensitive, whitespace collapsed.
parse
Parses the delta at path (relative to the project root) for capability, with its problems.