We need the ability to script upgrades to sites and to know the status of various components of a feature via drush. Feature diff tells you the information, but in the format of a diff, instead of just giving you the status you are looking for.

$ drush @cs fs --help
Print status information for a single feature.

Arguments:
 feature                                   Feature of which to check status.

Options:
 --format=<json>                           Select output format. Available: labeled-export, csv, json, list, string, table, var_export, yaml. Default is labeled-export. 
 --include                                 List of components to include in the status report.  All components not in the list will be ignored.                          
 --pipe                                    Equivalent to --format=config.

Topics:
 docs-output-formats                       Output formatting options selection and use.

Aliases: fs

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joelcollinsdc’s picture

joelcollinsdc’s picture

Status: Active » Needs review
joelcollinsdc’s picture

example output:

drush fs issue_settings
ctools: 'Default'
page_manager_handlers: 'Default'
page_manager_pages: 'Default'
rules_config: 'Default'
variable: 'Default'
views_view: 'Default'
dependencies: 'Default'
joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Neat! Still applies. May be nice to add an all option?

mpotter’s picture

My only concerns is the the 8.x branch also has a "drush fs" features-status command that is different. Perhaps a new name? Or perhaps a different option to the normal features-diff command that would change the output format to give just the status info instead of the full code diff. Kind of hate to implement entirely new commands at this late stage.

mpotter’s picture

Status: Reviewed & tested by the community » Needs work

Need to bump this to Needs work based on #5 and the conflict with the D8 commands.