Currently it is possible to revert a single component of a feature via the UI or via drush if you are in interactive mode (by selecting "no" for the components you do not wish to revert). This patch makes it so you can filter the list of components to revert via an option.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | features-components-drush-1429262.patch | 2.83 KB | neochief |
| #1 | features-drush_revert_component-1429262.patch | 1.11 KB | joelcollinsdc |
Comments
Comment #1
joelcollinsdc commentedComment #2
joelcollinsdc commentedComment #3
hefox commentedSeems good, but tiny space issue
Comment #4
neochief commentedIt looks like original patch intented to work only with one component at a time, since something like this down't work:
drush fr foo --components=c1 c2 --forceDrush understand c2 as another feature to revert, not a component.
Other drawback of this change is that you can't specify components for multiple features in one command.
I have modified the patch and changed it behavior a little bit, so now you can run commands like this:
drush fr foo.node foo.taxonomy bar --forceExamples of command also included.
Comment #5
joelcollinsdc commentedI assumed the way that you passed multiple space-separated arguments to a single option was to surround them with quotes. Your approach seems better, though, very interesting.
Comment #6
mpotter commentedNice update to the syntax. Committed and pushed in 6239499.