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

Add link support to config file and dotfile

This commit is contained in:
moyiz
2017-05-03 10:04:14 +03:00
parent d25ad19ec2
commit 262dd45823
2 changed files with 10 additions and 7 deletions

View File

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