kentaromiura / Green

Write code with the ease of mind that what matter is saved and you can go back to it later at any time (as long as it passes the tests).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Green

Green is a new way to code well, not really.

Just run Green on the root of your (currently only git) repository and, as long as it has a test file (or test.bat for Windows), it will automatically commit each of your changes once tests passes.

When you're done with your changes you can just squash all the commits, and give them the most appropriate message to be sure that your code will always work as you intended.

Green needs watchman installed in order to work. https://facebook.github.io/watchman/

Third party code and libraries and their license:

With Green you can write code with the peace of mind that what matter is saved and you can go back to it at any time (well, as long as it passes the tests).

Building

This project uses cmake, in order to build, from the source:

mkdir build && cd build;
cmake ..
make

This will produce a Green executable that you can copy on your path.

Green has been tested on Linux, BSD, OSX and WSL (in fact I should probably remove the test.bat thing, 3 years ago made more sense, but since WSL it's obsolete).

At some point it partially worked on Haiku, but due to a file system corruption I've lost the fallback code for the filesystem watcher, sorry.

About

Write code with the ease of mind that what matter is saved and you can go back to it later at any time (as long as it passes the tests).

License:MIT License


Languages

Language:C++ 95.4%Language:CMake 4.6%