(openspecPath: string, extendMode: boolean)
| 482 | // ═══════════════════════════════════════════════════════════ |
| 483 | |
| 484 | private async createDirectoryStructure(openspecPath: string, extendMode: boolean): Promise<void> { |
| 485 | if (extendMode) { |
| 486 | // In extend mode, just ensure directories exist without spinner |
| 487 | const directories = [ |
| 488 | openspecPath, |
| 489 | path.join(openspecPath, 'specs'), |
| 490 | path.join(openspecPath, 'changes'), |
| 491 | path.join(openspecPath, 'changes', 'archive'), |
| 492 | ]; |
| 493 | |
| 494 | for (const dir of directories) { |
| 495 | await FileSystemUtils.createDirectory(dir); |
| 496 | } |
| 497 | return; |
| 498 | } |
| 499 | |
| 500 | const spinner = this.startSpinner('Creating OpenSpec structure...'); |
| 501 | |
| 502 | const directories = [ |
| 503 | openspecPath, |
| 504 | path.join(openspecPath, 'specs'), |
| 505 | path.join(openspecPath, 'changes'), |
| 506 | path.join(openspecPath, 'changes', 'archive'), |
| 507 | ]; |
| 508 | |
| 509 | for (const dir of directories) { |
| 510 | await FileSystemUtils.createDirectory(dir); |
| 511 | } |
| 512 | |
| 513 | spinner.stopAndPersist({ |
| 514 | symbol: PALETTE.white('▌'), |
| 515 | text: PALETTE.white('OpenSpec structure created'), |
| 516 | }); |
| 517 | } |
| 518 | |
| 519 | // ═══════════════════════════════════════════════════════════ |
| 520 | // SKILL & COMMAND GENERATION |
no test coverage detected