faj-cli
Version:
FAJ - A powerful CLI resume builder with AI enhancement and multi-format export
45 lines ⢠1.84 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.CLI = void 0;
const interactive_1 = require("./commands/interactive");
class CLI {
interactiveCommand;
constructor() {
this.interactiveCommand = new interactive_1.InteractiveCommand();
}
register(program) {
// Register the interactive command as the default
this.interactiveCommand.register(program);
// Keep init for backward compatibility but it also leads to interactive mode
program
.command('init')
.description('Initialize FAJ (interactive mode)')
.action(async () => {
// Just run the interactive mode
const interactive = new interactive_1.InteractiveCommand();
await interactive['start']();
});
// Add a help command that shows simplified usage
program
.command('help')
.description('Show help')
.action(() => {
console.log('\nš FAJ Usage:\n');
console.log(' Just run: faj');
console.log('\n Everything is interactive! No need to remember commands.\n');
console.log(' The interactive menu will guide you through:');
console.log(' ⢠Creating your resume');
console.log(' ⢠Adding work experience');
console.log(' ⢠Analyzing projects');
console.log(' ⢠Exporting in various formats');
console.log(' ⢠Configuring AI and settings\n');
});
// Add global options
program
.option('-v, --version', 'Show version')
.option('-d, --debug', 'Enable debug mode')
.option('-q, --quiet', 'Suppress non-error output');
}
}
exports.CLI = CLI;
//# sourceMappingURL=index.js.map
;