You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Command/GenerateTypesCommand.php
+37-2Lines changed: 37 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,8 @@
33
33
*/
34
34
finalclass GenerateTypesCommand extends Command
35
35
{
36
+
privateconstDEFAULT_CONFIG_FILE = 'schema.yaml';
37
+
36
38
/**
37
39
* {@inheritdoc}
38
40
*/
@@ -42,27 +44,60 @@ protected function configure(): void
42
44
->setName('generate-types')
43
45
->setDescription('Generate types')
44
46
->addArgument('output', InputArgument::REQUIRED, 'The output directory')
45
-
->addArgument('config', InputArgument::OPTIONAL, 'The config file to use');
47
+
->addArgument('config', InputArgument::OPTIONAL, 'The config file to use (default to "schema.yaml" in the current directory, will generate all types if no config file exists)');
0 commit comments