Maybe this dialog (and following) should be put as a Trait so can be shared between the two patch-add and patch-remove classes?
Or else have a common ancestor like PatchFileManipulatorAbstractCommand ?
Having a common ancestor could also help for adding/removing the patch with sharing all the options, because basically the two commands are very very similar.
Maybe this dialog (and following) should be put as a
Trait
so can be shared between the twopatch-add
andpatch-remove
classes? Or else have a common ancestor likePatchFileManipulatorAbstractCommand
?Having a common ancestor could also help for adding/removing the patch with sharing all the options, because basically the two commands are very very similar.
Originally posted by @esolitos in https://github.com/szeidler/composer-patches-cli/pull/12