Skip to content

Commit

Permalink
Improve success message for command
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-meyer committed Jan 8, 2024
1 parent c50f296 commit 1fed4b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Console/UpdateFormatsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -107,10 +108,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$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
Expand Down

0 comments on commit 1fed4b1

Please sign in to comment.