Improve success message for command
This commit is contained in:
parent
c50f296abb
commit
1fed4b10f2
|
@ -55,6 +55,7 @@ class UpdateFormatsCommand extends ConsoleCommand
|
||||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$formats = Configuration::getInstance()->metadataPrefix;
|
$formats = Configuration::getInstance()->metadataPrefix;
|
||||||
|
$this->clearResultCache();
|
||||||
$inDatabase = Database::getInstance()->getMetadataFormats()->getQueryResult();
|
$inDatabase = Database::getInstance()->getMetadataFormats()->getQueryResult();
|
||||||
$added = 0;
|
$added = 0;
|
||||||
$deleted = 0;
|
$deleted = 0;
|
||||||
|
@ -107,10 +108,11 @@ class UpdateFormatsCommand extends ConsoleCommand
|
||||||
$output->writeln(
|
$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
|
1 | 16
|
||||||
|
|
Loading…
Reference in New Issue