dankocherga / MTool

Magento developer code generator built on zend tool framework
48 stars 17 forks source link

Undo action #29

Closed obukhow closed 13 years ago

obukhow commented 13 years ago

Reverse action of create functions removing files and config.xml strokes.

dankocherga commented 13 years ago

why do you need undo? Use version control software if you need to revert something.

obukhow commented 13 years ago

version control is not a magic pill. what if after 10 various creations i want to delete first? How should i restore my config.xml?

dankocherga commented 13 years ago

Can you undo "rm -rf /" ? Don't think about command line tool as a text editor.

Do a commit on every change as workaround :)

obukhow commented 13 years ago

i don't want it to be a real undo. it should be a revert action of create. So if create command adds a file, undo should remove file, if create adds some strings to config.xml, undo should find the same strings and remove them.