Hey,

This patch allow you to filter the feature listing by status and/or state on drush.

It adds to options to the feature-listing, --state and --status

Is not the greatest patch and I don't have access to cvs at work, so it's against my own repo. I can submit a proper patch at another time if someone hasn't already.

Comments

hefox’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Needs work
codi’s picture

Status: Needs work » Needs review
StatusFileSize
new2.38 KB

Took ericduran's patch and applied it to the 7.x-dev branch. Also added in a couple extra lines of code to allow for piping output for the features-list command. Let me know if I should separate that out as a separate patch.

For the --pipe stuff, I've provided a dash delimited list of the features machine name and the boolean of the features status. I needed that specific use case, so if someone else has better ideas, let me know.

rb2k’s picture

bump
I'd love to see the pipe support :)

mavimo’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
StatusFileSize
new1.78 KB

Patch to 2.x-dev attached.

Status: Needs review » Needs work

The last submitted patch, filter-feature-listing-935932-4.patch, failed testing.

mavimo’s picture

StatusFileSize
new1.78 KB

Upps, I posted the wrong file :P

mavimo’s picture

Status: Needs work » Needs review
elijah lynn’s picture

Status: Needs review » Reviewed & tested by the community

#6 adds --status=enabled|disabled|all to the drush features-list command and it applies against beta2 and works nicely.

It leaves out the state and pipe options in the earlier patches. This could be committed as is and does add nice functionality.

mpotter’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5b256aa.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.