No output by default when --exit-code is used

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2023-01-03 15:43:25 +01:00 committed by backportbot-nextcloud[bot]
parent 02ded7f3ee
commit 87678c2fd5

View file

@ -70,7 +70,10 @@ class Status extends Base {
'extendedSupport' => Util::hasExtendedSupport()
];
$this->writeArrayInOutputFormat($input, $output, $values);
if ($input->getOption('verbose') || !$input->getOption('exit-code')) {
$this->writeArrayInOutputFormat($input, $output, $values);
}
if ($input->getOption('exit-code')) {
if ($maintenanceMode === true) {
return 1;