From bcc5e7df8e2cf655360f5029cbc796c1946815ee Mon Sep 17 00:00:00 2001 From: Benexl Date: Mon, 29 Dec 2025 11:53:02 +0300 Subject: [PATCH] feat: allow disabling of initial config creation --- viu_media/cli/config/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viu_media/cli/config/loader.py b/viu_media/cli/config/loader.py index 81b5bd6..6307c84 100644 --- a/viu_media/cli/config/loader.py +++ b/viu_media/cli/config/loader.py @@ -71,7 +71,7 @@ class ConfigLoader: return app_config - def load(self, update: Dict = {}) -> AppConfig: + def load(self, update: Dict = {}, allow_setup=True) -> AppConfig: """ Loads the configuration and returns a populated, validated AppConfig object. @@ -84,7 +84,7 @@ class ConfigLoader: Raises: ConfigError: If the configuration file contains validation or parsing errors. """ - if not self.config_path.exists(): + if not self.config_path.exists() and allow_setup: return self._handle_first_run() try: