mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
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:
parent
7fe45314b3
commit
613a643fc5
1 changed files with 10 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue