portfree
Version:
A cross-platform CLI tool for managing processes running on specific ports
28 lines • 815 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const cli_1 = require("./cli");
/**
* Main entry point for the FreePort CLI
* Creates and runs the CLI interface with proper error handling
*/
async function main() {
const cli = new cli_1.CLI();
await cli.run();
}
// Handle unhandled promise rejections
process.on('unhandledRejection', (reason, promise) => {
console.error('Unhandled Rejection at:', promise, 'reason:', reason);
process.exit(1);
});
// Handle uncaught exceptions
process.on('uncaughtException', (error) => {
console.error('Uncaught Exception:', error);
process.exit(1);
});
// Run the CLI
main().catch((error) => {
console.error('Fatal error:', error.message);
process.exit(1);
});
//# sourceMappingURL=index.js.map