1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 07:52:57 +00:00

adding transformations in config and dotfiles

This commit is contained in:
deadc0de6
2018-02-07 09:50:57 +01:00
parent 39d7dbbe24
commit fa62ffeef7
2 changed files with 19 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ represents a dotfile in dotdrop
class Dotfile:
def __init__(self, key, dst, src, actions=[], link=False):
def __init__(self, key, dst, src,
actions=[], trans=[], link=False):
# key of dotfile in the config
self.key = key
# where to install this dotfile
@@ -18,6 +19,8 @@ class Dotfile:
self.link = link
# list of actions
self.actions = actions
# list of transformations
self.trans = trans
def __str__(self):
return 'key:%s, src: %s, dst: %s, link: %s' % (self.key, self.src,