lib/printer.js
function printTasks(tasks, verbose) {
  tasks = tasks
    .filterHidden(verbose)
    .sort();

  var results = [
    'Usage: gulp [task] [task2] ...',
    '',
    'Tasks: '
  ];

  var fieldTaskLen = tasks.getLongestNameLength();


  tasks.forEach(function(task) {
    var comment = task.comment || {};
    var lines = comment.lines || [];
    results.push(formatColumn(task.name, fieldTaskLen) + (lines[0] || ''));
    for (var i = 1; i < lines.length; i++) {
      results.push(formatColumn('', fieldTaskLen) + '  ' + lines[i]);
    }
  });

  return results.join('\n');
}
function printTasks(tasks, verbose) {
  tasks = tasks
    .filterHidden(verbose)
    .sort();

  var results = [
    'Usage: gulp [task] [task2] ...',
    '',
    'Tasks: '
  ];

  var fieldTaskLen = tasks.getLongestNameLength();


  tasks.forEach(function(task) {
    var comment = task.comment || {};
    var lines = comment.lines || [];
    results.push(formatColumn(task.name, fieldTaskLen) + (lines[0] || ''));
    for (var i = 1; i < lines.length; i++) {
      results.push(formatColumn('', fieldTaskLen) + '  ' + lines[i]);
    }
  });

  return results.join('\n');
}
function printTasks ( tasks , verbose ) { tasks = tasks . filterHidden ( verbose ) . sort ( ) ; var results = [ 'Usage: gulp [task] [task2] ...' , '' , 'Tasks: ' ] ; var fieldTaskLen = tasks . getLongestNameLength ( ) ; tasks . forEach ( function ( task ) { var comment = task . comment || { } ; var lines = comment . lines || [ ] ; results . push ( formatColumn ( task . name , fieldTaskLen ) + ( lines [ 0 ] || '' ) ) ; for ( var i = 1 ; i < lines . length ; i ++ ) { results . push ( formatColumn ( '' , fieldTaskLen ) + '  ' + lines [ i ] ) ; } } ) ; return results . join ( '\n' ) ; }
Render output from tasks
@param {TaskList} tasks
@param {boolean}  [verbose=false]
@returns {string}
Render output from tasks