Add options to provide drush analyze output in JSON and CSV

Created on 3 October 2023, 9 months ago
Updated 22 February 2024, 4 months ago

It would help with sorting/filtering/scoping upgrades to be able to get the output of drush analyze as a JSON file.

This can then be easily converted to a CSV for example for viewing in a spreadsheet for example.

Attached is a patch on 4.x dev that adds such a command

For example...

drush upgrade_status:analyze --all --ignore-uninstalled --ignore-custom --format=json > contrib.json

Omitting the format parameter retains the original behaviour.

Also attached is a simple PHP script to take the output (in contrib.json in above example) and output a CSV file (you will need to change the extension to php).

✨ Feature request
Status

Needs review

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom arcaic Milton Keynes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024