Implement SETTINGS dictionary to allow runtime modifications

This commit is contained in:
Ferit Yiğit BALABAN 2022-04-03 01:40:21 +03:00
parent 362295877c
commit f17bb80689
No known key found for this signature in database
GPG Key ID: BB8494BA65A90842

View File

@ -9,9 +9,16 @@ from datetime import datetime as dt
from termcolor import colored, cprint from termcolor import colored, cprint
DOTFILES_REPOSITORY = '$HOME/repos/dotfiles' # Modify SETTINGS dictionary to set runtime variables
REMOTE_REPOSITORY = 'https://github.com/fybx/dotfiles' # Access values in dictionary using pre-defined names
LOCAL_CONFIG = '$HOME/.config' SETTINGS = {
'DOTFILES_REPOSITORY': '$HOME/repos/dotfiles',
'REMOTE_REPOSITORY': 'https://github.com/fybx/dotfiles',
'LOCAL_CONFIG': '$HOME/.config'
}
DOTFILES_REPOSITORY = SETTINGS['DOTFILES_REPOSITORY']
REMOTE_REPOSITORY = SETTINGS['REMOTE_REPOSITORY']
LOCAL_CONFIG = SETTINGS['LOCAL_CONFIG']
VER = 'v1.6' VER = 'v1.6'
help_message = f''' help_message = f'''
dotman {VER} dotfiles manager by fyb dotman {VER} dotfiles manager by fyb