Closed alexandru-elisei closed 8 years ago
What is the use case for creating cli/<component>.php
? It is not common at all. If you really want to support CLI scripts generation, then I would expect something like this in the recipe:
cli:
- name: foo
- name: bar
which would end up in cli/foo.php and cli/bar.php files created. I don't think we need to go further in terms of defining args etc at the this stage.
Closing this pull request.
I am waiting for the result of #31 to use php_cli_file as the skel type for the cli template.
After that I'll make the necessary changes.
Skel class cli_script_file will probably have to set is_cli_script to true or something similar, pending the result of #28.