lib/question.js
function createNext(question) {
  if (!question.options.next) return;

  if (typeof question.options.next === 'function') {
    question.next = function() {
      question.options.next.apply(question, arguments);
    };
    return;
  }

  if (typeof question.options.next === 'string') {
    question.type = 'confirm';
    question.next = function(answer, questions, answers, next) {
      if (answer === true) {
        questions.ask(question.options.next, next);
      } else {
        next(null, answers);
      }
    };
  }
}
function createNext(question) {
  if (!question.options.next) return;

  if (typeof question.options.next === 'function') {
    question.next = function() {
      question.options.next.apply(question, arguments);
    };
    return;
  }

  if (typeof question.options.next === 'string') {
    question.type = 'confirm';
    question.next = function(answer, questions, answers, next) {
      if (answer === true) {
        questions.ask(question.options.next, next);
      } else {
        next(null, answers);
      }
    };
  }
}
function createNext ( question ) { if ( ! question . options . next ) return ; if ( typeof question . options . next === 'function' ) { question . next = function ( ) { question . options . next . apply ( question , arguments ) ; } ; return ; } if ( typeof question . options . next === 'string' ) { question . type = 'confirm' ; question . next = function ( answer , questions , answers , next ) { if ( answer === true ) { questions . ask ( question . options . next , next ) ; } else { next ( null , answers ) ; } } ; } }
Create the next question to ask, if `next` is passed on the
options.

@param {Object} `app` question instance
Create the next question to ask if next is passed on the options .