Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#1 | features-2231715-feature-status-drush-command.patch | 3.02 KB | joelcollinsdc |
Comments
Comment #1
joelcollinsdc CreditAttribution: joelcollinsdc commentedComment #2
joelcollinsdc CreditAttribution: joelcollinsdc commentedComment #3
joelcollinsdc CreditAttribution: joelcollinsdc commentedexample output:
Comment #4
joelpittetNeat! Still applies. May be nice to add an all option?
Comment #5
mpotter CreditAttribution: mpotter commentedMy 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.
Comment #6
mpotter CreditAttribution: mpotter commentedNeed to bump this to Needs work based on #5 and the conflict with the D8 commands.