Improve success message for command

This commit is contained in:
Sebastian Meyer 2024-01-08 10:53:10 +01:00
parent c50f296abb
commit 1fed4b10f2
1 changed files with 5 additions and 3 deletions

View File

@ -55,6 +55,7 @@ class UpdateFormatsCommand extends ConsoleCommand
protected function execute(InputInterface $input, OutputInterface $output): int
{
$formats = Configuration::getInstance()->metadataPrefix;
$this->clearResultCache();
$inDatabase = Database::getInstance()->getMetadataFormats()->getQueryResult();
$added = 0;
$deleted = 0;
@ -107,10 +108,11 @@ class UpdateFormatsCommand extends ConsoleCommand
$output->writeln(
[
'',
' The following metadata formats are currently supported: ',
' ======================================================= ',
' [INFO] The following metadata formats are currently supported: ',
' "' . implode('", "', $currentFormats) . '" ',
'',
' "' . implode('", "', $currentFormats) . '" ',
' To change supported formats edit config/config.yml an run ',
' command "php bin/cli oai:formats:update" again! ',
''
],
1 | 16