fop_console icon indicating copy to clipboard operation
fop_console copied to clipboard

Add command to desactive / active all or a specific override

Open ghost opened this issue 5 years ago • 3 comments

Add a command to disable or enable all overrides.

Like here :

https://github.com/nenes25/prestashop_console/pull/3/files

To go deep I also wanted to add the possibility to desactive or active a specific override by playing on the class_index.php and file extension in the override folder.

I don't know if it's the best way

ghost avatar Feb 06 '20 10:02 ghost

A command to enable/disable overrides is a great idea :+1:

To go deep I also wanted to add the possibility to desactive or active a specific override by playing on the class_index.php and file extension in the override folder.

To modify a generated file does not sound as a good idea. :fearful: Nothing prevents that file to be rewritten, so changes are lost.

Dealing with classical override mechanisms seems better.

SebSept avatar Feb 08 '20 21:02 SebSept

We could just remove class_index.php after disabling/enabling override?

tom-combet avatar Sep 21 '22 12:09 tom-combet

maybe.

Are someone really interested by this command ? @okom3pom , still interested by this feature ? Should we keep this issue open ?

SebSept avatar Nov 04 '22 10:11 SebSept