/** * init command * Initialize a new SpecVerse project * Generated from SpecVerse specification */ import { Command } from 'commander'; import { existsSync, mkdirSync, readdirSync, statSync, readFileSync, writeFileSync } from 'fs'; import { resolve, join, dirname } from 'path'; import { fileURLToPath } from 'url'; interface CommandOptions { template?: string; list?: boolean; static?: boolean; } /** * Register the init command on the program. */ export function registerInitCommand(program: Command): void { program .command('init [name]') .description('Initialize a new SpecVerse project') .option('--template