#!/usr/bin/env node

var fs = require('fs');

var sys = require('sys');
var exec = require('child_process').exec;
var Git = require('git-wrapper');


exports.execute = function(version, message) {
    message = message || 'Bump version';

    if(!version) {
        return console.error('No version provided!');
    }
    if(!!parseFloat(version)) {
        return console.error('Invalid version! Expected a numeric entry.');
    }

    bumpVersion(version);

    var git = new Git();
    git.exec('commit', {}, ['-a', '-m "' + message + '"'], function(err, msg) {
        if(err) return console.error('commit failed', err);

        git.exec('tag', {}, ['v' + version], function(err, msg) {
            if(err) return console.error('tagging failed', err);
        });
    });
};

function bumpVersion(version) {
    var data = JSON.parse(fs.readFileSync('package.json'));

    data.version = version;

    fs.writeFileSync('package.json', JSON.stringify(data, null, 2));
}

@@ -426,16 +426,76 @@
 %0A    %7D%0A%0A
+    console.log('Creating a tag with version: ', version);%0A%0A
     bump
@@ -809,16 +809,62 @@
 ', err);
+%0A%0A            console.log('Finished tagging');
 %0A       

Add output prints