refactor(admin-delegation): extract plain output to new function

prepare to add json output

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
This commit is contained in:
Misha M.-Kupriyanov 2025-09-22 16:39:01 +02:00 committed by backportbot[bot]
parent d2394fcda6
commit 2a58db3ca0

View file

@ -34,6 +34,16 @@ class Show extends Base {
protected function execute(InputInterface $input, OutputInterface $output): int {
$io = new SymfonyStyle($input, $output);
$this->outputPlainFormat($io);
return 0;
}
/**
* Output data in plain table format
*/
private function outputPlainFormat(SymfonyStyle $io): void {
$io->title('Current delegations');
$sections = $this->settingManager->getAdminSections();
@ -62,8 +72,6 @@ class Show extends Base {
}, $sectionSettings));
}
}
return 0;
}
/**