Skip to content

[Bug] Does not respect silent/quiet output verbosity level #276

@llaville

Description

@llaville

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 !

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions