mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-03 14:09:42 +02:00
Add @fileoverview documentation to: - src/index.ts - CLI entry point - src/cli.ts - Command definitions - src/templates/claude-md.ts - Template generation with function docs - src/web/server.ts - Web server and API Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
556 B
JavaScript
26 lines
556 B
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* @fileoverview Claudeman CLI entry point
|
|
*
|
|
* This is the main executable entry point for the Claudeman CLI.
|
|
* It sets up global error handlers and invokes the CLI parser.
|
|
*
|
|
* @module index
|
|
*/
|
|
|
|
import { program } from './cli.js';
|
|
|
|
// Handle uncaught errors
|
|
process.on('uncaughtException', (err) => {
|
|
console.error('Uncaught exception:', err.message);
|
|
process.exit(1);
|
|
});
|
|
|
|
process.on('unhandledRejection', (reason) => {
|
|
console.error('Unhandled rejection:', reason);
|
|
process.exit(1);
|
|
});
|
|
|
|
// Run CLI
|
|
program.parse();
|