airgen-cli 0.20.4 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -137,6 +137,7 @@ export function registerRequirementCommands(program, client) {
|
|
|
137
137
|
.option("--section <id>", "Section ID")
|
|
138
138
|
.option("--tags <tags>", "Comma-separated tags")
|
|
139
139
|
.option("--idempotency-key <key>", "Prevent duplicates on retry — returns existing if key was already used")
|
|
140
|
+
.option("--verifies <ref>", "Atomically create a 'verifies' trace link to this requirement ref")
|
|
140
141
|
.action(async (tenant, projectKey, opts) => {
|
|
141
142
|
if (!opts.section && !opts.document) {
|
|
142
143
|
console.error("Error: --section or --document is required. Without it, the requirement gets a project-level ref");
|
|
@@ -156,6 +157,7 @@ export function registerRequirementCommands(program, client) {
|
|
|
156
157
|
sectionId: opts.section,
|
|
157
158
|
tags: opts.tags?.split(",").map(t => t.trim()),
|
|
158
159
|
idempotencyKey: opts.idempotencyKey,
|
|
160
|
+
verifiesRef: opts.verifies,
|
|
159
161
|
});
|
|
160
162
|
if (isJsonMode()) {
|
|
161
163
|
output(data);
|
|
@@ -166,6 +168,8 @@ export function registerRequirementCommands(program, client) {
|
|
|
166
168
|
}
|
|
167
169
|
else {
|
|
168
170
|
console.log("Requirement created.");
|
|
171
|
+
if (data.traceLink)
|
|
172
|
+
console.log("Trace link (verifies) created.");
|
|
169
173
|
}
|
|
170
174
|
output(data);
|
|
171
175
|
}
|