mage2tv / magento-cache-clean

A faster drop in replacement for bin/magento cache:clean with file watcher
BSD 3-Clause "New" or "Revised" License
528 stars 61 forks source link

Remove generated folder shortcut #34

Closed DanieliMi closed 5 years ago

DanieliMi commented 5 years ago

How about [G] to remove generated/ folder?

Vinai commented 5 years ago

Thanks for the suggestion @DanieliMi! That would be easy enough to add. If I may ask, how often do you find you manually have to remove generated code? For me it's completely automatic already. Maybe you can describe the circumstances when manual intervention is required?

DanieliMi commented 5 years ago

Usually it is automatically for me as well but currently I am facing a bug where the di compile doesn't work properly and I either have to remove the generated folder in order to get the fresh classes or I have to manually run the setup:di:compile. Honestly I cannot really think of any other circumstances where it's needed because it should work automatically but in rare cases it doesn't work it's very comfortable to delete generated quickly.

Vinai commented 5 years ago

Okay, good reason. I'll add it to one of the upcoming releases.

DanieliMi commented 5 years ago

Cool thank you.

Vinai commented 5 years ago

Just published release 0.0.39 with G hotkey to clean the generated code folder.