1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 15:14:17 +00:00

adding impignore

This commit is contained in:
deadc0de6
2020-12-08 12:33:11 +01:00
parent 831b3ddc1a
commit c7e60839fc
9 changed files with 162 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ Usage:
dotdrop install [-VbtfndDa] [-c <path>] [-p <profile>]
[-w <nb>] [<key>...]
dotdrop import [-Vbdfm] [-c <path>] [-p <profile>] [-s <path>]
[-l <link>] <path>...
[-l <link>] [-i <pattern>...] <path>...
dotdrop compare [-LVb] [-c <path>] [-p <profile>]
[-w <nb>] [-C <file>...] [-i <pattern>...]
dotdrop update [-VbfdkP] [-c <path>] [-p <profile>]
@@ -269,6 +269,10 @@ class Options(AttrMonitor):
self.import_path = self.args['<path>']
self.import_as = self.args['--as']
self.import_mode = self.args['--preserve-mode']
self.import_ignore = self.args['--ignore']
self.import_ignore.extend(self.impignore)
self.import_ignore.append('*{}'.format(self.install_backup_suffix))
self.import_ignore = uniq_list(self.import_ignore)
# "update" specifics
self.update_path = self.args['<path>']