- 🇭🇺Hungary Gábor Hojtsy Hungary
@andypost that still does not change how Drush interprets the result though?
- 🇫🇷France andypost
AFK ATM but Drush 13 still using same codes
https://github.com/drush-ops/drush/blob/fede207f56a7fa9624d0c3b658d793a1... - 🇭🇺Hungary Gábor Hojtsy Hungary
Duh, Moshe says the last line that I was complaining about is not from Drush but probably ddev :D So nothing to see here. Let's introduce the exit code then and accept our fate of running from ddev resulting in confusing messaging. Can someone help convert the patch to MR to help run it against our CI?
- Merge request !72Unify the analyze and checkstyle commands. Add found issue tracking. Add... → (Merged) created by Gábor Hojtsy
- 🇭🇺Hungary Gábor Hojtsy Hungary
Gábor Hojtsy → changed the visibility of the branch 3175323-the-analyze-command to hidden.
- Status changed to Needs review
9 months ago 7:35am 23 February 2024 - 🇭🇺Hungary Gábor Hojtsy Hungary
MRified it. I went ahead a bit and unified the analyze commands with a format key, so we can more easily add more formats and still get the exit code feature without needing to implement it that many times. I used most of the patch.
- Issue was unassigned.
- 🇺🇸United States moshe weitzman Boston, MA
Gábor Hojtsy → credited moshe weitzman → .
- 🇭🇺Hungary Gábor Hojtsy Hungary
I asked Moshe about official ways to deprecate Drush commands. While I will not follow it to keep it working for now, this was the suggestion that will be useful in the future as a potential next step to make the
checkstyle
command obsolete.Empty out the code in the command, change the method description to something helpful, and add the
[#Obsolete]
Attribute. Here are examples https://github.com/drush-ops/drush/blob/13.x/src/Commands/LegacyCommands...LegacyCommands.php /** * site:alias-convert has been removed. Please use Drush 11 or convert by hand. */ #[CLI\Command(name: 'site:alias-convert', aliases: ['sa-convert', 'sac'])] #[CLI\Obsolete]
If you want it to keep working, then there is no standard way. Just log a notice or debug that the command is deprecated.
One thing to note from here is to not fire an error but a notice instead.
-
Gábor Hojtsy →
committed b00e1779 on 4.x
Issue #3175323 by Gábor Hojtsy, lhridley, mglaman, andypost, moshe...
-
Gábor Hojtsy →
committed b00e1779 on 4.x
- Status changed to Fixed
9 months ago 6:45pm 1 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.