var api = require('digio-api')
, cmd = require('./cli')
, fs = require('fs')
, _package = require('../package.json')
, path = require('path')
, tools = require('./tools')

var digio = (function () {

    cmd
      .version('Digio v' + _package.version)

    var _config = tools.load_config()
    if (_config && tools.verify_config()) {
      var commands = fs.readdirSync(__dirname + '/commands').filter(function (e) {
        return /(\.(js)$)/i.test(path.extname(e))
      })

      commands.forEach(function(command) {
        require('./commands/' + command)(cmd)
      });
    }

    cmd.parse()

})()

module.exports = digio

var api = require('digio-api')
, cmd = require('./cli')
, fs = require('fs')
, _package = require('../package.json')
, path = require('path')
, tools = require('./tools')

var digio = (function () {

    cmd
      .version('Digio v' + _package.version)

    var _config = tools.load_config()
    if (_config && tools.verify_config(_config)) {
      var commands = fs.readdirSync(__dirname + '/commands').filter(function (e) {
        return /(\.(js)$)/i.test(path.extname(e))
      })

      commands.forEach(function(command) {
        require('./commands/' + command)(cmd)
      });
    }

    cmd.parse()

})()

module.exports = digio

Fix missing config in verify_config call
Fix missing config in verify_config call
