mudrd8mz / moodle-tool_pluginskel

Generator of Moodle plugins skeletons
https://moodle.org/plugins/tool_pluginskel
Other
51 stars 46 forks source link

Cli_script feature #29

Closed alexandru-elisei closed 8 years ago

alexandru-elisei commented 8 years ago

Skel class cli_script_file will probably have to set is_cli_script to true or something similar, pending the result of #28.

mudrd8mz commented 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.

alexandru-elisei commented 8 years ago

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.