agp-cli
Version:
Agentic Programming Project CLI - Standardized knowledge layer for AI-assisted development
22 lines • 829 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushCommand = void 0;
const commander_1 = require("commander");
const agp_push_1 = require("../utils/agp-push");
const logger_1 = require("../utils/logger");
exports.pushCommand = new commander_1.Command('push')
.description('Commit and push AGP knowledge changes to remote repository')
.option('-m, --message <msg>', 'Commit message for AGP changes')
.action(async (options) => {
try {
await (0, agp_push_1.pushAgpChanges)({
message: options.message,
});
}
catch (error) {
logger_1.logger.error('Failed to push AGP changes:');
logger_1.logger.error(error instanceof Error ? error.message : 'Unknown error');
process.exit(1);
}
});
//# sourceMappingURL=push.js.map