UNPKG

agp-cli

Version:

Agentic Programming Project CLI - Standardized knowledge layer for AI-assisted development

24 lines 966 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initCommand = void 0; const commander_1 = require("commander"); const agp_init_1 = require("../utils/agp-init"); const logger_1 = require("../utils/logger"); exports.initCommand = new commander_1.Command('init') .description('Initialize AGP system in the current project') .option('-f, --force', 'Force initialization even if .agp directory already exists') .option('--template <url>', 'Use custom template repository URL') .action(async (options) => { try { await (0, agp_init_1.initializeAgpDirectory)({ force: options.force || false, templateUrl: options.template, }); } catch (error) { logger_1.logger.error('Failed to initialize AGP system:'); logger_1.logger.error(error instanceof Error ? error.message : 'Unknown error'); process.exit(1); } }); //# sourceMappingURL=init.js.map