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 Mikhailo Matiyenko-Kupriyanov
parent 7fe45314b3
commit 613a643fc5

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;
}
/**