examples/project-generator/build.js
function ask(cb) {
  return function(app) {
    app.use(store('smithy'))
      .use(questions())
      .ask(function(err, answers) {
        if (err) return cb(err);

        cb.call(app, null, answers);
      });

    app.asyncHelper('ask', function(key, options, cb) {
      app.questions.options.force = true;
      app.ask(key, function(err, res) {
        if (err) return cb(err);
        cb(null, res[key]);
      });
    });
  };
}
function ask(cb) {
  return function(app) {
    app.use(store('smithy'))
      .use(questions())
      .ask(function(err, answers) {
        if (err) return cb(err);

        cb.call(app, null, answers);
      });

    app.asyncHelper('ask', function(key, options, cb) {
      app.questions.options.force = true;
      app.ask(key, function(err, res) {
        if (err) return cb(err);
        cb(null, res[key]);
      });
    });
  };
}
function ask ( cb ) { return function ( app ) { app . use ( store ( 'smithy' ) ) . use ( questions ( ) ) . ask ( function ( err , answers ) { if ( err ) return cb ( err ) ; cb . call ( app , null , answers ) ; } ) ; app . asyncHelper ( 'ask' , function ( key , options , cb ) { app . questions . options . force = true ; app . ask ( key , function ( err , res ) { if ( err ) return cb ( err ) ; cb ( null , res [ key ] ) ; } ) ; } ) ; } ; }
Customize the base-questions plugin
Customize the base - questions plugin