(function(undefined) {
    'use strict';

    var grunt = require('grunt');

    var api = {

            "--version": function() {
                grunt.log.writeln(['JetFuel version', require('./version').call()].join(' '));
            },

            install: function() {
                require('./install').apply(install, arguments);
            },

            init: function() {
                require('./init').apply(init, arguments);
            }

        };

    function loadGruntTask(force, done) {
        loadJetFuelTasks();
        require('util').puts('\nRunning Grunt...\n');
        grunt.cli({ force: force }, done);
    }

    function loadJetFuelTasks() {
        var pwd = process.cwd();
        process.chdir(require('path').dirname(module.filename) + '/..');
        grunt.loadNpmTasks('jetfuel.grunt.tasks');
        grunt.loadNpmTasks('grunt-jasmine-task');
        process.chdir(pwd);
    }

    module.exports = function() {
        return (api[process.argv[2]] || loadGruntTask).apply(this, process.argv.slice(3));
    };

})(undefined);
(function(undefined) {
    'use strict';

    var grunt = require('grunt');

    var api = {

            "--version": function() {
                grunt.log.writeln(['JetFuel version', require('./version').call()].join(' '));
            },

            install: function() {
                var install = require('./install');
                install.apply(install, arguments);
            },

            init: function() {
                var init = require('./init');
                init.apply(init, arguments);
            }

        };

    function loadGruntTask(force, done) {
        loadJetFuelTasks();
        require('util').puts('\nRunning Grunt...\n');
        grunt.cli({ force: force }, done);
    }

    function loadJetFuelTasks() {
        var pwd = process.cwd();
        process.chdir(require('path').dirname(module.filename) + '/..');
        grunt.loadNpmTasks('jetfuel.grunt.tasks');
        grunt.loadNpmTasks('grunt-jasmine-task');
        process.chdir(pwd);
    }

    module.exports = function() {
        return (api[process.argv[2]] || loadGruntTask).apply(this, process.argv.slice(3));
    };

})(undefined);
Fix for install