pub.js
function exp(cmd, confdir) {
  return function (files, opt) {
    var defaultOpt = {
      cwd: process.cwd()
    };
    opt = append(defaultOpt, opt);

    if (typeof files == 'string')
      files = [ files ];

    require(path.resolve(confdir, cmd + '.js'))(files, opt);
  };
}
function exp(cmd, confdir) {
  return function (files, opt) {
    var defaultOpt = {
      cwd: process.cwd()
    };
    opt = append(defaultOpt, opt);

    if (typeof files == 'string')
      files = [ files ];

    require(path.resolve(confdir, cmd + '.js'))(files, opt);
  };
}
function exp ( cmd , confdir ) { return function ( files , opt ) { var defaultOpt = { cwd : process . cwd ( ) } ; opt = append ( defaultOpt , opt ) ; if ( typeof files == 'string' ) files = [ files ] ; require ( path . resolve ( confdir , cmd + '.js' ) ) ( files , opt ) ; } ; }
exports a command
exports a command