Closed (outdated)
Project:
Module Builder
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2013 at 15:21 UTC
Updated:
3 Sep 2019 at 13:40 UTC
Jump to comment: Most recent
Comments
Comment #1
joachim commentedThis sounds like it would totally fit into Module Builder. Should be fairly easy to fit it in now the generating system is all modular. The API and Test generators are good standalone subcomponents that you may want to refer to as examples.
Comment #2
greg.1.anderson commentedGreat, I'll take a look. My existing generator is very simple -- I just have a few simple replacements that need to be done, so it shouldn't be too hard to integrate with your API. I'll post a patch when it's ready.
Comment #3
Chris CharltonStill in the works?
Comment #4
joachim commentedI suspect it's fallen off greg.1.anderson's radar.
If you wanted to pick this up yourself, the principal steps involved in this are:
- create a new subclass of RootComponent for the drush command generator
- this should request a PHPFile subcomponent. IIRC at that point you can also request the functions you want (the drush hook and the command callback), and state they go in that file. The AdminSettingsForm component is probably a good example to look at.
- add a drush command that uses the new generator. There's a common helper function for drush commands that you can use.
Comment #5
joachim commentedModule Builder is now just a UI. I've moved this issue to https://github.com/drupal-code-builder/drupal-code-builder/issues/158