Streamlining Git Tasks: marecli CLI Tool for Developers

Streamline Your Git Workflow with marecli: Automating Branch Creation, Code Merging, Back merging, and Version Updates

TL;DR:

Looking to streamline your Git tasks and enhance productivity? marecli, a user-friendly command-line interface tool, is designed to automate and simplify routine Git operations like branch creation, code merging, and back-merging.

NPM - https://www.npmjs.com/package/marecli


As developers, we all find ourselves lost in the trenches of Git regularly. Navigating through the creation of branches, merging, back-merging, and updating application versions becomes a part of our everyday routine. If you've ever thought about automating these tasks, then marecli is a CLI tool you might want to check out.

marecli: CLI Tool to Simplify Git Tasks

marecli was conceived with the idea to automate some repetitive Git tasks, making it a handy CLI tool for developers. It's custom-built to suit the Git workflow at my workplace, but some of the operations it performs are common to many developers. As of 21st May 2023, marecli offers:

  1. Branch Creation: Create feature, hotfix, or bug branches, with a provision to append a JIRA ticket ID to the branch name.

  2. Code Merging: Simplifies the process of raising code from a development branch to a release branch. Post the merge, it provides the URL to create a pull request, speeding up the review process.

  3. Backmerging: Easily back-merge from a release branch to a development branch, eliminating the need for manual branch switching.

  4. Version Updates: Updating application versions, specifically changing tags in 'deployment.yaml' files (for applications on Kubernetes) within a specified directory and its subdirectories.

marecli uses the Inquirer.js library for its interactive prompts.

Future Enhancements

marecli is a work in progress (right now the whole thing could be an alias to a series of git commands), and there's plenty of room for further enhancements:

  1. Built-in Error Handling: marecli currently relies on the native shell command error reporting. However, future versions aim to incorporate more robust error-handling mechanisms within the tool.

  2. Expanded Git Command Range: There are plans to include additional Git commands in marecli, like tagging, rebasing, and stash handling.

  3. Customizable Workflows: Make it customizable to adapt to different Git workflows.

  4. Interactive Merge Conflict Resolution: Include an interactive feature for resolving merge conflicts to make marecli more comprehensive and user-friendly.

marecli is a CLI tool developed to simplify the Git tasks that developers encounter daily. Check out marecli on NPM or Github and see how it can streamline your workflow. Any feedback or suggestions are always welcome and appreciated!

Did you find this article valuable?

Support Sidharth Shambu by becoming a sponsor. Any amount is appreciated!