const yosay = require('yosay');
const _ = require('lodash');
const Base = require('../base');

module.exports = class Generator extends Base {
  constructor() {
    super(...arguments);

    this.data = {};

    this.option('skip-message', {
      desc: 'Skips the welcome message',
      type: Boolean,
    });
  }

  prompting() {
    const done = this.async();

    if (!this.options['skip-message']) {
      this.log(yosay('Allo! Allo! Welcome to the Ng-Fire Generator!'));
    }

    const questions = [];

    this.prompt(questions, answers => {
      _.assign(this.data, answers);

      done();
    });
  }

  configuring() {
    this.config.set(this.data);
  }

  install() {
    this.installDependencies();
  }
};

@@ -201,16 +201,165 @@
  = %7B%7D;%0A%0A
+    this.argument('appname', %7B%0A      type: String,%0A      required: true,%0A    %7D);%0A%0A    this.appname = this.data.appname = _.kebabCase(this.appname);%0A%0A
     this

add app name argument