lib/command-asker.js
function CommandAsker(questions, options) {
    options = options || {};
    
    if (!_.isArray(questions)) {
        throw "there are no questions available :'(";
    }
    
    this.questions = questions;
    this.response = {};
    this.cli = readline.createInterface({
        input: process.stdin,
        output: process.stdout
    });
    this.askCallback = null;
    this.errorMsg = options.errorMsg || clc.xterm(160);
    this.currentQuestion = 0;
}
function CommandAsker(questions, options) {
    options = options || {};
    
    if (!_.isArray(questions)) {
        throw "there are no questions available :'(";
    }
    
    this.questions = questions;
    this.response = {};
    this.cli = readline.createInterface({
        input: process.stdin,
        output: process.stdout
    });
    this.askCallback = null;
    this.errorMsg = options.errorMsg || clc.xterm(160);
    this.currentQuestion = 0;
}
function CommandAsker ( questions , options ) { options = options || { } ; if ( ! _ . isArray ( questions ) ) { throw "there are no questions available :'(" ; } this . questions = questions ; this . response = { } ; this . cli = readline . createInterface ( { input : process . stdin , output : process . stdout } ) ; this . askCallback = null ; this . errorMsg = options . errorMsg || clc . xterm ( 160 ) ; this . currentQuestion = 0 ; }
Create new asker

@constructor
Create new asker