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

Provide a replacement for Drupal Console generate:ajax:command #5834

Closed JPustkuchen closed 10 months ago

JPustkuchen commented 11 months ago

Is your feature request related to a problem? Please describe. I just read through https://weknowinc.com/blog/creating-custom-ajax-command-drupal-8 as I need a custom AJAX Command (AjaxResponse).

I first looked into drush gen but couldn't find a command for that. drupal generate:ajax:command shows:

drupal.sh is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3241346

The command can be found here: https://github.com/hechoendrupal/drupal-console-en/blob/master/translations/generate.ajax.command.yml

Describe the solution you'd like Provide a drush gen replacement for that command to generate custom AjaxResponse Commands.

weitzman commented 10 months ago

This request belongs in https://github.com/Chi-teck/drupal-code-generator which drush uses.

JPustkuchen commented 10 months ago

Thanks @weitzman I didn't know that. I created that one here: https://github.com/Chi-teck/drupal-code-generator/issues/120