Skip to content

Commit

Permalink
Fix typo and skip console output on skipPrompting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoker committed Mar 6, 2019
1 parent c9d216d commit bd90e43
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions generator-jsonforms/src/generators/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class JsonformsGenerator extends Generator {
this.repo = '';
this.path = this.options.path;
this.name = this.options.name;
this.skipPrompting = this.options.skipPromting;
this.skipPrompting = this.options.skipPrompting;

if (this.project === Project.Example) {
this.repo = ProjectRepo.Example;
Expand All @@ -51,13 +51,13 @@ export class JsonformsGenerator extends Generator {
}

async prompting() {
clear();
this.log(
chalk.blue(
textSync('JSONForms Tooling', { horizontalLayout: 'full' }),
),
);
if (!this.skipPrompting) {
clear();
this.log(
chalk.blue(
textSync('JSONForms Tooling', { horizontalLayout: 'full' }),
),
);
this.answers = await this.prompt([
{
name: 'project',
Expand Down

0 comments on commit bd90e43

Please sign in to comment.