From 8a6692513fe25878b7a5d97593bb8d0b0a0a7f35 Mon Sep 17 00:00:00 2001
From: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
Date: Thu, 4 Jan 2024 05:21:54 +0100
Subject: [PATCH] Unify CLI commands

---
 composer.json          | 9 ++-------
 config/config.dist.yml | 2 +-
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/composer.json b/composer.json
index 14743c6..e54c141 100644
--- a/composer.json
+++ b/composer.json
@@ -71,16 +71,11 @@
         ],
         "doctrine:initialize-database": [
             "@php bin/cli orm:schema-tool:update --complete --force",
-            "@oai:update-formats --quiet"
-        ],
-        "oai:update-formats": [
-            "@php bin/cli oai:formats:update"
+            "@php bin/cli oai:formats:update --quiet"
         ]
     },
     "scripts-descriptions": {
         "doctrine:clear-cache": "Clears the Doctrine/ORM metadata, query and result caches",
-        "doctrine:generate-proxies": "Generates the Doctrine/ORM entity proxies",
-        "doctrine:initialize-database": "Initializes a new database (NOT RECOMMENDED IN PRODUCTION!)",
-        "oai:update-formats": "Updates supported metadata formats from configuration"
+        "doctrine:initialize-database": "Initializes a new database (NOT RECOMMENDED IN PRODUCTION!)"
     }
 }
diff --git a/config/config.dist.yml b/config/config.dist.yml
index 0939283..99fb8e8 100644
--- a/config/config.dist.yml
+++ b/config/config.dist.yml
@@ -62,7 +62,7 @@ database: 'sqlite3:///%BASEDIR%/data/sqlite3.db'
 # have the same record in multiple formats, it's highly recommended to use the
 # same identifier for all versions of the record.
 #
-# Run "composer oai:update-formats" after changing metadata prefixes to update
+# Run "bin/cli oai:formats:update" after changing metadata prefixes to update
 # the database accordingly!
 #
 metadataPrefix: {