diff --git a/blitz/settings.py b/blitz/settings.py index 1c4a970..1d9a5e5 100644 --- a/blitz/settings.py +++ b/blitz/settings.py @@ -21,6 +21,7 @@ class Config: DEFAULT_FILE: str = "blitz.json" BLITZ_DB_TYPE: DBTypes = DBTypes.SQLITE BLITZ_OPENAI_API_KEY: str = "" + READ_ONLY: bool = False @lru_cache() diff --git a/blitz/ui/blitz_ui.py b/blitz/ui/blitz_ui.py index 00532b0..08f85fd 100644 --- a/blitz/ui/blitz_ui.py +++ b/blitz/ui/blitz_ui.py @@ -14,6 +14,7 @@ class BlitzUI: def __init__(self, settings: Settings = get_settings()) -> None: + self.read_only = settings.READ_ONLY self.blitz_app: BlitzCore = BlitzCore() self.apps = self.blitz_app.apps self.preprompt = self._get_preprompt()