git-release-manager
Version:
A tool to generate release notes from git commit history
38 lines • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommitController = void 0;
const CommitManager_1 = require("./CommitManager");
class CommitController {
constructor() {
this.commitManager = new CommitManager_1.CommitManager();
}
async handleListCommand(options, config) {
try {
await this.commitManager.listCommits(options, config);
}
catch (error) {
console.error('Error:', error instanceof Error ? error.message : String(error));
process.exit(1);
}
}
async handleCreateCommand(options, config) {
try {
await this.commitManager.createCommit(options, config);
}
catch (error) {
console.error('Error:', error instanceof Error ? error.message : String(error));
process.exit(1);
}
}
async handleAmendCommand(options, config) {
try {
// await this.commitManager.listCommits(options, config)
}
catch (error) {
console.error('Error:', error instanceof Error ? error.message : String(error));
process.exit(1);
}
}
}
exports.CommitController = CommitController;
//# sourceMappingURL=CommitController.js.map