| 27 | } |
| 28 | |
| 29 | function printMapUsage(): void { |
| 30 | console.log('codebase-context map [options]'); |
| 31 | console.log(''); |
| 32 | console.log('Output the conventions map for the current codebase.'); |
| 33 | console.log(''); |
| 34 | console.log('Options:'); |
| 35 | console.log(' --export Write CODEBASE_MAP.md to project root (still honors --full)'); |
| 36 | console.log(' --full Output the exhaustive map instead of the bounded default'); |
| 37 | console.log(' --json Output raw JSON (CodebaseMapSummary)'); |
| 38 | console.log(' --pretty Terminal-friendly box layout'); |
| 39 | console.log(' --help Show this help'); |
| 40 | console.log(''); |
| 41 | console.log('Default output is markdown (pipeable).'); |
| 42 | } |
| 43 | |
| 44 | export async function handleMapCli(args: string[]): Promise<void> { |
| 45 | const useJson = args.includes('--json'); |