all files / mlpm/ index.js

100% Statements 9/9
100% Branches 0/0
100% Functions 1/1
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15        12× 12×    
'use strict'
 
var log = require('winston')
var argsLib = require('./lib/args.js')
var _ = require('lodash')
 
log.remove(log.transports.Console)
log.add(log.transports.File, { filename: 'mlpm.log' })
log.level = 'error'
 
_.each(argsLib.cmds, function(synonyms) {
  var cmd = synonyms[0]
  module.exports[ cmd ] = require( './lib/commands/' + cmd ).command
})