You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --direction UPSTREAM|DOWNSTREAM to collect command
Enable bidirectional traversal for the collect command. UPSTREAM
(default) traverses derivedFrom relations to ancestors. DOWNSTREAM
traverses derive relations to descendants, enabling enumeration of
all children under impact_scope parent entries.
3.**Review impact scope and enumerate covered elements** (from JSON `impact_scope[]`):
41
41
42
-
The `impact_scope` array shows the per-branch common parent requirements covering all impacted elements. Use this to understand the high-level affected model areas before diving into details.
42
+
The `impact_scope` array shows the per-branch common parent requirements covering all impacted elements. For each scope root, use downstream collect to enumerate all covered children:
Copy file name to clipboardExpand all lines: cli/src/cli.rs
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -490,12 +490,16 @@ pub enum Commands {
490
490
output:Option<String>,
491
491
},
492
492
493
-
/// Collect content from requirement chain via derivedFrom relations
494
-
#[clap(override_help = "Collect content from requirement chain via derivedFrom relations\n\nCOLLECT OPTIONS:\n <ELEMENT_NAME> Name of the requirement element to collect from\n --json Output results in JSON format\n --output <FILE> Save JSON output to file (requires --json)")]
493
+
/// Collect content from requirement chain
494
+
#[clap(override_help = "Collect content from requirement chain\n\nCOLLECT OPTIONS:\n <ELEMENT_NAME> Name of the requirement element to collect from\n --direction <DIR> Traversal direction: UPSTREAM (default) or DOWNSTREAM\n --json Output results in JSON format\n --output <FILE> Save JSON output to file (requires --json)")]
495
495
Collect{
496
496
/// Name of the requirement element to collect from
497
497
element_name:String,
498
498
499
+
/// Traversal direction: UPSTREAM (ancestors) or DOWNSTREAM (descendants)
Copy file name to clipboardExpand all lines: requirements/Functional/Output/Reporting.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,12 +28,13 @@ When requested the system shall provide human readable and machine readable Syst
28
28
29
29
### Collect Content from Requirement Chain
30
30
31
-
The system shall collect and consolidate all content from a requirement element and its ancestors via derivedFrom relations, including refinedBy targets (refinement elements and specification files) and attachment contents, and output with source citations in text or JSON format.
31
+
The system shall collect and consolidate all content from a requirement element and its related requirements via derivedFrom relations (upstream to ancestors) or derive relations (downstream to descendants), including refinedBy targets (refinement elements and specification files) and attachment contents, and output with source citations in text or JSON format.
32
32
33
33
#### Details
34
34
The system shall define:
35
35
- Content collection rules for elements, refinedBy targets, and attachments
36
36
- Output format specifications for text and JSON modes
37
+
- Direction-based traversal: upstream (ancestors via derivedFrom) or downstream (descendants via derive)
0 commit comments