Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/specflow/src/commands/complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { runDoctorowGate, isDoctorowVerified } from "../lib/doctorow";
export interface CompleteCommandOptions {
force?: boolean;
skipDoctorow?: boolean;
headless?: boolean;
}

/**
Expand Down Expand Up @@ -339,7 +340,10 @@ export async function completeCommand(
const doctorowResult = await runDoctorowGate(
featureId,
feature.specPath,
options.skipDoctorow ?? false
{
skipFlag: options.skipDoctorow ?? false,
headless: options.headless,
}
);

if (!doctorowResult.passed && !doctorowResult.skipped) {
Expand Down
3 changes: 2 additions & 1 deletion packages/specflow/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ program
.argument("<feature-id>", "Feature ID to mark complete (e.g., F-1)")
.option("--force", "Bypass validation (not recommended)")
.option("--skip-doctorow", "Skip the Doctorow Gate checklist")
.action((featureId, options) => completeCommand(featureId, { force: options.force, skipDoctorow: options.skipDoctorow }));
.option("--headless", "Run Doctorow Gate in headless mode (auto-detected in non-TTY)")
.action((featureId, options) => completeCommand(featureId, { force: options.force, skipDoctorow: options.skipDoctorow, headless: options.headless }));

program
.command("validate")
Expand Down
Loading