Bang.sh - Bash Script Framework

Try it now!

File an issue, fork it or start using Bang.sh right now!

Visit GitHub Repository

About Bang.sh

This framework is intended to help on easy bash script development. It is totally modularized.

It helps you developing new Bash Script programs by forcing you to modularize and organize your code in functions, so that your program can be tested.

It is pretty easy to write your first project.

$ mkdir your_project
$ cd your_project
$ git clone git://github.com/bellthoven/bangsh.git
$ vim your_project.sh

Now, you just have to source bang.sh with:

#!/bin/bash
source bangsh/src/bang.sh
echo "My first bang.sh app"
And run it!
$ bash your_project.sh

Or make it executable

$ chmod +x your_project.sh
    $ ./your_project.sh

To make sure everything is fine, you can run all framework tests by typing:

$ cd bangsh ; make test ; cd - 

Now you can start developing your own modules and use it in your application!