When using the drush command, it would be handy if we could use the various formats that drush is capable of outputting as. See https://docs.drush.org/en/8.x/output-formats/

This is shown in a command such as drush pml.

$ lando drush help pml
Show a list of available extensions (modules and themes).

Options:
 --core                                    Filter out extensions that are not in drupal core.                                                                                                                    
 --field-labels                            Add field labels before first line of data. Default is on; use --no-field-labels to disable.                                                                          
 --fields=<package, name, type, status,    Fields to output. All available fields are: package, name, type, status, version.                                                                                     
 version>                                                                                                                                                                                                        
 --format=<json>                           Select output format. Available: table, csv, html, json, list, var_export, yaml. Default is table.                                                                    
 --no-core                                 Filter out extensions that are provided by drupal core.                                                                                                               
 --package                                 Filter by project packages. You can use multiple comma separated values. (i.e. --package="Core - required,Other").                                                    
 --pipe                                    Equivalent to --format=list.                                                                                                                                          
 --status=<disabled>                       Filter by extension status. Choices: enabled, disabled and/or 'not installed'. You can use multiple comma separated values. (i.e. --status="disabled,not installed"). 
 --type=                           Filter by extension type. Choices: module, theme.

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

Aliases: pml

Shouldn't be a big deal to convert it to something like this:
https://github.com/drush-ops/drush/blob/8.x/commands/pm/pm.drush.inc#L31...

Comments

generalredneck created an issue. See original summary.

generalredneck’s picture

Issue summary: View changes
astonvictor’s picture

Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.