mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 01:54:15 +02:00
improvement -> all suported types now display a 'Checking configuration file' task during the initialization process
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
from bauh.commons.config import read_config as read
|
||||
from bauh.commons.config import YAMLConfigManager
|
||||
from bauh.gems.web import CONFIG_FILE
|
||||
|
||||
|
||||
def read_config(update_file: bool = False) -> dict:
|
||||
default_config = {
|
||||
'environment': {
|
||||
'system': False,
|
||||
'electron': {'version': None},
|
||||
'cache_exp': 1440
|
||||
class WebConfigManager(YAMLConfigManager):
|
||||
|
||||
def __init__(self):
|
||||
super(WebConfigManager, self).__init__(config_file_path=CONFIG_FILE)
|
||||
|
||||
def get_default_config(self) -> dict:
|
||||
return {
|
||||
'environment': {
|
||||
'system': False,
|
||||
'electron': {'version': None},
|
||||
'cache_exp': 1440
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return read(CONFIG_FILE, default_config, update_file)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user