1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 04:45:39 +00:00

adding action to dotfiles

This commit is contained in:
deadc0de6
2017-09-08 15:24:25 +02:00
parent cc9c0792ed
commit cd77fecee3
6 changed files with 90 additions and 6 deletions

View File

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