Skip to content

Commit ade3d4b

Browse files
authored
Merge pull request #87 from haydncomley/feature/allow-flat-in-json
feat: Allow Flat Property within JSON
2 parents ee26b0e + f2b0847 commit ade3d4b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/generateComponent.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export default function initGenerateComponentCommand(args, cliConfigFile, progra
2424
'Describe the component you want GRC to generate (e.g., Create a counter component that increments by one when I click on the increment button).',
2525
null
2626
)
27-
.option('-f, --flat', 'Generate the files in the mentioned path insted of creating new folder for it', false)
27+
.option(
28+
'-f, --flat',
29+
'Generate the files in the mentioned path instead of creating new folder for it',
30+
selectedComponentType.flat || false
31+
)
2832
.option('-dr, --dry-run', 'Show what will be generated without writing to disk');
2933

3034
// Dynamic component command option defaults.

0 commit comments

Comments
 (0)