mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 07:44:17 +02:00
improvement -> all suported types now display a 'Checking configuration file' task during the initialization process
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
from bauh.commons.config import read_config as read
|
||||
from bauh.commons.config import YAMLConfigManager
|
||||
from bauh.gems.appimage import CONFIG_FILE
|
||||
|
||||
|
||||
def read_config(update_file: bool = False) -> dict:
|
||||
default = {
|
||||
'database': {
|
||||
'expiration': 60
|
||||
class AppImageConfigManager(YAMLConfigManager):
|
||||
|
||||
def __init__(self):
|
||||
super(AppImageConfigManager, self).__init__(config_file_path=CONFIG_FILE)
|
||||
|
||||
def get_default_config(self) -> dict:
|
||||
return {
|
||||
'database': {
|
||||
'expiration': 60
|
||||
}
|
||||
}
|
||||
}
|
||||
return read(CONFIG_FILE, default, update_file=update_file)
|
||||
|
||||
Reference in New Issue
Block a user