composer/composer — pull request #2800 by garyamort (2014-03-10 18:27:03+00:00)
Title: Command event

Modifies composer so that it calls the Command Event for ALL commands regardless of whether or not they are expected to "load plugins".. https://getcomposer.org/doc/articles/plugins.md

Requires a bit more digging in order to make sure there can be something listening on the event.

Purpose: This would allow allow scripts greater ability to customize and extend composer. For example, if I want to have a script which ads a specific set of git remotes to all composer packages in a project based on some configuration rules - it could be done easily after the fact with:
composer git2remote-add

Currently, it instead requires setting up the script to trigger on the post-update-cmd event, and either run composer update, or composer run-script post-update-cmd

Neither of which are granular enough to run JUST the specific script and only that script.