-
-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Labels
Description
Hello,
I've tried yesterday, for the first time, your project, and I love this great tool.
BTW, I've noticed on testing a pre-commit hook like this : vendor/bin/captainhook hook:pre-commit --silent
that latest version in date (5.25.6) does not respect the Symfony/Console Silent Verbosity option.
I've in mind a little code change like that :
<?php
$verbosity = $out->isSilent() ? OutputInterface::VERBOSITY_SILENT : max($confVerbosity, $cliVerbosity);
$out->setVerbosity($verbosity);
into https://github.com/captainhook-git/captainhook/blob/5.25.6/src/Console/Command/ConfigAware.php#L120
but it will work only with latest symfony/console
constraint
into https://github.com/captainhook-git/captainhook/blob/5.25.6/composer.json#L43
Hope you'll find a better compromise to satisfy all versions supported !