I know it's possible to include simple CLI scripts into Composer's scripts/scripts-descriptions list.
It's also possible to point static methods or functions to be executed as Composer scripts.
I know, under the hood, it uses the Symfony Console library.
Thus, is there any chance it's possible to include custom Symfony Console scripts into the main list of scripts a project uses, besides writing WET code and repeating all scripts and descriptions into composer.json?
Note: this is not a Symfony question, it's a Composer question - which indeed uses Symfony Console, but it's not related to the framework as a whole. It's custom
Commandsubclasses which I want to add tocomposer.jsonwithout repetitive descriptions and commands.
composer listshows and runs, just like scripts defined under thescriptskey incomposer.json. Thus... Symfony Console commands integrated into composer package scripts. First I mentioned the composer scripts, then usage of Symfony Console. I thought the association was clear enough.