DEV Community

Fernando B πŸš€
Fernando B πŸš€

Posted on β€’ Originally published at kodaman2.github.io on

2

Showcase Generatrix Utility for Git Branches-Tags Markdown

I wrote this utility last week which I call Generatrix. It generates markdown for a repo branches/tags. I don't know how much of a problem this is for other people, but I figured to share it anyways. If you are doing a tutorial, and need to provide code to your users, and you split the code in branches or tags as you progress throughout the tutorial or lesson, you can too use generatrix. And then copy and paste the output in your readme.

Backstory

I actually started doing a static-site on github pages, repository but I sorta failed miserably because I suck at JS, well not really, I just suck at async code. I've never done any JS and I got frustated, I did asked for help which some folks provided awesome help and I still have to work on it. Site works but branches are spit out not in date order, sometimes, which is a problem. I am sure my JS code is a mess lol.

Out of order mkdown
static_gtrix

Python Version

I spent a few days on the static site, and then went and did the python version in a couple of hours.

gtrix_cmd

It works in all platforms since is piping git commands.

pip install Generatrix
Enter fullscreen mode Exit fullscreen mode

Inside a git repo:

gtrix
  or
gtrix --help
  or
gtrix --tags
Enter fullscreen mode Exit fullscreen mode

Optional, if you don't have .gitconfig configured:

gtrix --user "username"
Enter fullscreen mode Exit fullscreen mode

All arguments have short version too, help documentation is on the repo posted in the beginning. Let me know if you've ever had to generate this manually for a readme file. I welcome feedback as well. :)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay