helmsman.js
function defaultFillCommandData(defaults, file, extension) {
  var data;

  try {
    data = require(file).command || {};
  } catch (e) {
    // If it's JavaScript then return the error
    if (extension === '.js') {
      data = {failedRequire: e};
    }
  }

  return _.merge(defaults, data);
}
function defaultFillCommandData(defaults, file, extension) {
  var data;

  try {
    data = require(file).command || {};
  } catch (e) {
    // If it's JavaScript then return the error
    if (extension === '.js') {
      data = {failedRequire: e};
    }
  }

  return _.merge(defaults, data);
}
function defaultFillCommandData ( defaults , file , extension ) { var data ; try { data = require ( file ) . command || { } ; } catch ( e ) { // If it's JavaScript then return the error if ( extension === '.js' ) { data = { failedRequire : e } ; } } return _ . merge ( defaults , data ) ; }
The default function used to get metadata from a command
The default function used to get metadata from a command