UNPKG

git-release-manager

Version:

A tool to generate release notes from git commit history

20 lines 752 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.run = run; const writer_1 = require("../../modules/output/writer"); const templateOperations_1 = require("../../modules/changelog/templateOperations"); async function run(options, config) { let templatePath = options.template || config.template; let outputOpt = options.output || config.output; try { const fileData = await (0, templateOperations_1.renderChangelogTemplate)(templatePath, options, config); if (fileData) { (0, writer_1.writeOutput)(fileData, outputOpt); } } catch (error) { console.error('Error getting git logs:', error); process.exit(1); } } //# sourceMappingURL=app.js.map