feat: add option to change shortcuts, set return modes
This commit is contained in:
@@ -54,6 +54,30 @@ class Config:
|
||||
if self._config is None:
|
||||
raise RuntimeError("Configuration not loaded")
|
||||
self._config.catalogue = value
|
||||
|
||||
@property
|
||||
def shortcuts(self)->omegaconf.DictConfig:
|
||||
if self._config is None:
|
||||
raise RuntimeError("Configuration not loaded")
|
||||
return self._config.shortcuts
|
||||
@shortcuts.setter
|
||||
def shortcuts(self, value: omegaconf.DictConfig):
|
||||
if self._config is None:
|
||||
raise RuntimeError("Configuration not loaded")
|
||||
self._config.shortcuts = value
|
||||
|
||||
@property
|
||||
def advanced_refresh(self)->omegaconf.DictConfig:
|
||||
if self._config is None:
|
||||
raise RuntimeError("Configuration not loaded")
|
||||
return self._config.advanced_refresh
|
||||
|
||||
@advanced_refresh.setter
|
||||
def advanced_refresh(self, value: omegaconf.DictConfig):
|
||||
if self._config is None:
|
||||
raise RuntimeError("Configuration not loaded")
|
||||
self._config.advanced_refresh = value
|
||||
|
||||
@property
|
||||
def database(self)->omegaconf.DictConfig:
|
||||
if self._config is None:
|
||||
|
||||
Reference in New Issue
Block a user