The Precommit command is responsible for declaring which commands can be included, it's better if the commands themself declare that.
composer scripts pre-commit contents are defined inside the PrecommitHook Command, it's also the responsability of the commands to do it
After the refactoring, the problems above will be resolved, the Precommit command will not change if the precommitable commands change their scripts, are added or removed.
Problems :
pre-commit
contents are defined inside the PrecommitHook Command, it's also the responsability of the commands to do itAfter the refactoring, the problems above will be resolved, the Precommit command will not change if the precommitable commands change their scripts, are added or removed.