drush-ops / drush

Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
https://www.drush.org
2.34k stars 1.08k forks source link

Could Single Directory Components be generated for modules as well as themes? #6132

Closed lostcarpark closed 1 month ago

lostcarpark commented 1 month ago

Is your feature request related to a problem? Please describe. drush generate sdc only offers the option of generating a component in a theme.

It would be nice if it could also generate a component in a module.

Describe the solution you'd like Perhaps the first question could be "theme or module?"

Alternatively there could be a separate generate command (e.g. drush generate single-directory-component-module).

Describe alternatives you've considered My current workaround is to generate into a temporary theme, and move the component into my module, but I think it's likely that enough people will want SDCs in modules to be worth supporting.

Additional context None.

Chi-teck commented 1 month ago

Closing as a duplicate of https://github.com/Chi-teck/drupal-code-generator/issues/115