Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "patch-remove" command #12

Merged
merged 3 commits into from
Nov 21, 2019
Merged

Conversation

szeidler
Copy link
Owner

@szeidler szeidler commented Aug 8, 2019

Pull request for #11

@szeidler
Copy link
Owner Author

szeidler commented Aug 8, 2019

TODO: This should work analogous to #9 once it gets merged.

Copy link
Contributor

@esolitos esolitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick review on the PR.

src/Composer/CommandProvider.php Outdated Show resolved Hide resolved
src/Composer/PatchRemoveCommand.php Show resolved Hide resolved
}

protected function interact(InputInterface $input, OutputInterface $output) {
$dialog = $this->getHelperSet()->get('dialog');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestions. Let's do it on a separate issue, after this feature has been committed. Because it has also an effect on the command that is not part of this issue/pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants