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.33k stars 1.08k forks source link

Port Drupal Console `site:mode dev` functionality to Drush. #5618

Closed trackleft closed 1 year ago

trackleft commented 1 year ago

As a novice Drupal developer, I would like a way to quickly and easily put a site into theme development mode with one command.

Describe the solution you'd like Something similar to the way Drupal console does this. https://github.com/hechoendrupal/drupal-console/blob/7027117c82cd8b9d9f3fb89558a088e0575434d3/src/Command/Site/ModeCommand.php#L65

Describe alternatives you've considered Write a custom script to introduce this functionality. Manually put each site into development mode when I need it. Use environment variables and services.local.php

Additional context Drupal Console does not work in PHP version 8.1 and above, which is a requirement of Drupal 10.

Drupal console output for this command looks like this

image
gitressa commented 1 year ago

Drupal 10.1 will Make it easier for theme builders to enable Twig debugging and disable render cache and I created Enable Twig debugging and disable render cache via Drush and settings.php.

There's also Easy way to bypass all caching which I guess is what this issue is about? Maybe, as in the case of the Twig debug/caching solution, cache disabling for "everything else than theming layer" may need to get build in Drupal, and Drush integration added afterwards?

weitzman commented 1 year ago

5109