dist/autocomplete.js
function getCommandNames(cmds) {
  var commands = _.map(cmds, '_name');
  commands = commands.concat.apply(commands, _.map(cmds, '_aliases'));
  commands.sort();
  return commands;
}
function getCommandNames(cmds) {
  var commands = _.map(cmds, '_name');
  commands = commands.concat.apply(commands, _.map(cmds, '_aliases'));
  commands.sort();
  return commands;
}
function getCommandNames ( cmds ) { var commands = _ . map ( cmds , '_name' ) ; commands = commands . concat . apply ( commands , _ . map ( cmds , '_aliases' ) ) ; commands . sort ( ) ; return commands ; }
Compile all available commands and aliases
in alphabetical order.

@param {Array} cmds
@return {Array}
@api private
Compile all available commands and aliases in alphabetical order .