faj-cli
Version:
FAJ - A powerful CLI resume builder with AI enhancement and multi-format export
53 lines • 2.15 kB
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const chalk_1 = __importDefault(require("chalk"));
const cli_1 = require("./cli");
const package_json_1 = require("../package.json");
// Note: .env file is deprecated - configuration is now stored in encrypted ~/.faj/config.json
// Environment variables are still supported for backward compatibility only
// ASCII Art Banner
const banner = `
╔══════════════════════════════════════╗
║ ______ ___ _ ║
║ | ____| / _ \\ | | ║
║ | |__ / /_\\ \\ | | ║
║ | __| | _ | | | ║
║ | | | | | | _ | | ║
║ |_| |_| |_|(_) |_| ║
║ ║
║ Find A Job - AI Resume Builder ║
╚══════════════════════════════════════╝
`;
async function main() {
console.log(chalk_1.default.cyan(banner));
const program = new commander_1.Command();
const cli = new cli_1.CLI();
program
.name('faj')
.description(package_json_1.description)
.version(package_json_1.version);
// Register all CLI commands
cli.register(program);
// Parse command line arguments
await program.parseAsync(process.argv);
}
// Handle errors gracefully
process.on('uncaughtException', (error) => {
console.error(chalk_1.default.red('Unexpected error:'), error.message);
process.exit(1);
});
process.on('unhandledRejection', (reason) => {
console.error(chalk_1.default.red('Unhandled promise rejection:'), reason);
process.exit(1);
});
// Run the CLI
main().catch((error) => {
console.error(chalk_1.default.red('Failed to start FAJ:'), error.message);
process.exit(1);
});
//# sourceMappingURL=index.js.map
;