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

implement import --as for #220

This commit is contained in:
deadc0de6
2020-04-11 14:46:10 +02:00
parent 054ba21019
commit 40e970465b
7 changed files with 247 additions and 55 deletions

View File

@@ -815,6 +815,10 @@ class CfgYaml:
self.dirty = True
return self.dirty
def get_all_dotfile_keys(self):
"""return all existing dotfile keys"""
return self.dotfiles.keys()
def add_dotfile(self, key, src, dst, link):
"""add a new dotfile"""
if key in self.dotfiles.keys():