#!/usr/bin/env node

var Workshopper = require('workshopper');
var path = require('path');
var credits = require('./credits');
var menu = require('./exercises/menu');

var name = 'makemehapi';
var title = 'REST WELL WITH HAPI';
var subtitle = '\x1b[23mSelect an exercise and hit \x1b[3mEnter\x1b[23m to begin';


function fpath (f) {

  return path.join(__dirname, f);
}


Workshopper({
    name        : name,
    title       : title,
    subtitle    : subtitle,
    exerciseDir : fpath('./exercises/'),
    appDir      : __dirname,
    helpFile    : fpath('help.txt'),
    menu        : [ {
        name    : 'credits',
        handler : credits
    } ],
    menuOptions : {}
});
#!/usr/bin/env node

var Workshopper = require('workshopper');
var path = require('path');
var credits = require('./credits');
var menu = require('./exercises/menu');

var name = 'makemehapi';
var title = 'REST WELL WITH HAPI';
var subtitle = '\x1b[23mSelect an exercise and hit \x1b[3mEnter\x1b[23m to begin';


function fpath (f) {

  return path.join(__dirname, f);
}


Workshopper({
    name : name,
    title : title,
    subtitle : subtitle,
    exerciseDir : fpath('./exercises/'),
    appDir : __dirname,
    helpFile : fpath('help.txt'),
    menu : [ {
        name : 'credits',
        handler : credits
    } ],
    menuOptions : {}
});
remove spacing in declarations