|
1 | 1 | #!/usr/bin/env php |
2 | 2 | <?php |
| 3 | + |
3 | 4 | declare(strict_types=1); |
4 | 5 |
|
5 | 6 | use Html\Command\CreateClassCommand; |
@@ -31,18 +32,18 @@ $app->command('make:all', function (InputInterface $input, OutputInterface $outp |
31 | 32 | })->descriptions('Creates or re-creates all PHP classes for all HTML Elements and backed enums for static HTML attributes'); |
32 | 33 |
|
33 | 34 | // generating Templates (.html,.twig,.php) for HTML elements |
34 | | -$app->command('make:generate [generator] [source] [dest]', function (InputInterface $input, OutputInterface $output) { |
| 35 | +$app->command('generate [generator] [source] [dest]', function (InputInterface $input, OutputInterface $output) { |
35 | 36 | $output->writeln('Generates templpates. Uses a given generator. Requires a source path with your component YAMLs and a destination path for the generated templates.'); |
36 | 37 | })->descriptions('Generates templates for HTML Elements'); |
37 | 38 |
|
38 | 39 | $sourceDefault = realpath(__DIR__ . '/../examples/template-generator/source'); |
39 | 40 | $destDefault = realpath(__DIR__ . '/../examples/template-generator/dest'); |
40 | 41 | $app |
41 | | - ->command('make:watch [generator] [source] [dest] [--overwrite-existing=]', function ($generator, $source, $dest, $overwriteExisting = false, InputInterface $input, OutputInterface $output) { |
| 42 | + ->command('watch [generator] [source] [dest] [--overwrite-existing=]', function ($generator, $source, $dest, $overwriteExisting = false, InputInterface $input, OutputInterface $output) { |
42 | 43 | (new WatchCommand(new ComponentBuilder()))($generator, $source, $dest, $overwriteExisting, $input, $output); |
43 | 44 | }) |
44 | 45 | ->descriptions('Observes a directory or file for changes, and generates templates for HTML Elements', ['generator' => 'name of the generator', 'source' => 'source path', 'dest' => 'destination path']) |
45 | | - ->defaults(['generator' => 'html', 'source' =>$sourceDefault, 'dest' => $destDefault, 'overwrite-existing' => false]); |
| 46 | + ->defaults(['generator' => 'html', 'source' => $sourceDefault, 'dest' => $destDefault, 'overwrite-existing' => false]); |
46 | 47 |
|
47 | 48 | // $app->setDefaultCommand('make:all'); |
48 | 49 | $app->run(); |
0 commit comments