diff --git a/composer.json b/composer.json index cf52248..d63b56b 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ ], "require": { "php": ">=7.1.8", + "lesser-evil/shell-verbosity-is-evil": "~1.0", "symfony/console": "~4.0", "symfony/yaml": "~4.0", "civicrm/composer-downloads-plugin": "~3.0", diff --git a/composer.lock b/composer.lock index 5bed1e9..868431e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a5fbc2043df5e4b9835709c5521b6454", + "content-hash": "ba1bd865ce568ce7589bcec69aae99c5", "packages": [ { "name": "civicrm/composer-downloads-plugin", @@ -60,6 +60,42 @@ }, "time": "2020-11-02T05:26:23+00:00" }, + { + "name": "lesser-evil/shell-verbosity-is-evil", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/totten/shell-verbosity-is-evil.git", + "reference": "4195bce7e3adaeda6d4747a1f3ec3c39b124f169" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/totten/shell-verbosity-is-evil/zipball/4195bce7e3adaeda6d4747a1f3ec3c39b124f169", + "reference": "4195bce7e3adaeda6d4747a1f3ec3c39b124f169", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "LesserEvil\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tim Otten", + "email": "totten@civicrm.org" + } + ], + "support": { + "issues": "https://github.com/totten/shell-verbosity-is-evil/issues", + "source": "https://github.com/totten/shell-verbosity-is-evil/tree/v1.0.0" + }, + "time": "2022-11-02T23:02:43+00:00" + }, { "name": "psr/container", "version": "1.0.0", diff --git a/src/Application.php b/src/Application.php index 2db7fb9..c6953db 100644 --- a/src/Application.php +++ b/src/Application.php @@ -1,6 +1,7 @@ getDefaultCommands(); } + protected function configureIO(InputInterface $input, OutputInterface $output) { + ShellVerbosityIsEvil::doWithoutEvil(function() use ($input, $output) { + parent::configureIO($input, $output); + }); + } + }