UNPKG

git-release-manager

Version:

A tool to generate release notes from git commit history

23 lines 961 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createFlowCommand = createFlowCommand; const commander_1 = require("commander"); function createFlowCommand(program) { const utilsProgram = program .command("utils") .alias('u') .description("Tools to manage your git releases and versioning"); const programFile = utilsProgram.command('file').description(''); programFile.addCommand(new commander_1.Command() .command('change-name <path> <newName>') .description('Changes the file name and returns the new path') .action(async (path, newName) => { const pathSegments = path.split('/'); pathSegments[pathSegments.length - 1] = newName; const newPath = pathSegments.join('/'); console.log(`New file path: ${newPath}`); // No return statement is needed here })); return utilsProgram; } //# sourceMappingURL=command.js.map