1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 09:04:16 +00:00

Merge pull request #269 from deadc0de6/notemplate

Notemplate
This commit is contained in:
deadc0de
2020-10-10 13:54:30 +02:00
committed by GitHub
19 changed files with 490 additions and 97 deletions

View File

@@ -58,6 +58,7 @@ class CfgYaml:
key_dotfile_actions = 'actions'
key_dotfile_link_children = 'link_children'
key_dotfile_noempty = 'ignoreempty'
key_dotfile_template = 'template'
# profile
key_profile_dotfiles = 'dotfiles'
@@ -83,6 +84,7 @@ class CfgYaml:
key_settings_noempty = Settings.key_ignoreempty
key_settings_minversion = Settings.key_minversion
key_imp_link = Settings.key_link_on_import
key_settings_template = Settings.key_template_dotfile_default
# link values
lnk_nolink = LinkTypes.NOLINK.name.lower()
@@ -597,6 +599,11 @@ class CfgYaml:
if self.key_dotfile_noempty not in v:
val = self.settings.get(self.key_settings_noempty, False)
v[self.key_dotfile_noempty] = val
# apply template if undefined
if self.key_dotfile_template not in v:
val = self.settings.get(self.key_settings_template, True)
v[self.key_dotfile_template] = val
return new
def _add_variables(self, new, shell=False, template=True, prio=False):