Coder Social home page Coder Social logo

jenorris / grawkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deuill/grawkit

0.0 0.0 0.0 65 KB

The Awksome Git Graph Generator

Home Page: https://grawkit.deuill.org

License: MIT License

Makefile 10.06% Awk 59.88% Go 18.57% CSS 6.92% JavaScript 3.41% Dockerfile 1.15%

grawkit's Introduction

Grawkit - The Awksome Git Graph Generator MIT License

Grawkit is a tool that helps build SVG graphs from git command-line descriptions, and is built in Awk.

This tool was created in support of the "Orthogonal Git Workflow" post. Yes, this took way longer to write than the post itself.

Testing & Documentation

A Makefile is provided for running tests and producing documentation for Grawkit. Run make help in the project root for more information.

A full test-suite is provided (depending only on make and awk), which should serve as a good example of the existing feature-set. Run it with make test.

Installation

Copy the included grawkit AWK script into your local search path (most commonly $HOME/.local/bin), or just use it directly in this folder. Grawkit should work with most POSIX-compatible AWK implementations, and has been tested against gawk, nawk, busybox awk, and goawk.

Status & Usage

Grawkit has basic support for common git commands such as git branch, git tag and git merge, allowing for fairly complex graphs. The integrated test-suite serves as an example, check the tests folder for more.

In order to use this tool, either run the grawkit executable against a file containing supported git commands (any command not recognized will be silently ignored), or pass these in standard input. For instance, given the following file test.txt:

git commit -m "Commit on master"
git commit -m "More stuff"

git branch test-stuff
git checkout test-stuff

git commit -m 'Testing stuff'
git commit

git checkout master
git commit

You can execute either:

cat test.txt | grawkit
# or
grawkit test.txt

Which will produce SVG markup to standard output, rendered as:

License

All code in this repository is covered by the terms of the MIT License, the full text of which can be found in the LICENSE file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.