Skip to content
Open
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
4 changes: 2 additions & 2 deletions CLI/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
import { loadIdeaIndex } from '../core/pipeline.js';
import { listRecentRuns } from '../core/paths.js';

export function createBuildCommand(): Command {

Check warning on line 23 in CLI/src/commands/build.ts

View workflow job for this annotation

GitHub Actions / Lint

Function 'createBuildCommand' has too many lines (130). Maximum allowed is 100
const command = new Command('build')
.description('Build a selected idea through Stages 02-10')
.argument('[idea]', 'Idea ID, name, or slug to build')
.option('-m, --model <model>', 'Claude model to use')
.option('--json', 'Output results as JSON')
.option('-y, --yes', 'Skip confirmation prompts')
.action(async (ideaArg, options) => {

Check warning on line 30 in CLI/src/commands/build.ts

View workflow job for this annotation

GitHub Actions / Lint

Async arrow function has a complexity of 20. Maximum allowed is 15

Check warning on line 30 in CLI/src/commands/build.ts

View workflow job for this annotation

GitHub Actions / Lint

Async arrow function has too many lines (121). Maximum allowed is 100
const startTime = Date.now();

if (!options.json) {
Expand Down Expand Up @@ -123,7 +123,7 @@
JSON.stringify({ success: false, error: result.error }, null, 2)
);
} else {
printFailureBanner('build', result.error || 'Unknown error');
printFailureBanner('build', result.error ?? 'Unknown error');
}
process.exit(2);
}
Expand All @@ -149,7 +149,7 @@
console.log(
formatKeyValue([
{ key: 'App Name', value: found.idea.name },
{ key: 'Build Path', value: result.buildPath || 'N/A' },
{ key: 'Build Path', value: result.buildPath ?? 'N/A' },
])
);
console.log();
Expand Down
Loading
Loading