Implement SETTINGS dictionary to allow runtime modifications
This commit is contained in:
parent
362295877c
commit
f17bb80689
13
dotman.py
13
dotman.py
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user