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 7, 2019
1 parent b56f92f commit 9c3044b
Show file tree
Hide file tree
Showing 4 changed files with 708 additions and 1,033 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
Loading

0 comments on commit 9c3044b

Please sign in to comment.