mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 21:50:41 +00:00
more verbose on remove (#306)
This commit is contained in:
@@ -646,7 +646,7 @@ def cmd_remove(o):
|
|||||||
break
|
break
|
||||||
removepath(parent, LOG)
|
removepath(parent, LOG)
|
||||||
parent = os.path.dirname(parent)
|
parent = os.path.dirname(parent)
|
||||||
removed.append(dotfile.key)
|
removed.append(dotfile)
|
||||||
|
|
||||||
if o.dry:
|
if o.dry:
|
||||||
LOG.dry('new config file would be:')
|
LOG.dry('new config file would be:')
|
||||||
@@ -654,7 +654,10 @@ def cmd_remove(o):
|
|||||||
else:
|
else:
|
||||||
o.conf.save()
|
o.conf.save()
|
||||||
if removed:
|
if removed:
|
||||||
LOG.log('\ndotfile(s) removed: {}'.format(','.join(removed)))
|
LOG.log('\nFollowing dotfile(s) are not tracked anymore:')
|
||||||
|
entries = ['- \"{}\" (was tracked as \"{}\")'.format(r.dst, r.key)
|
||||||
|
for r in removed]
|
||||||
|
LOG.log('\n'.join(entries))
|
||||||
else:
|
else:
|
||||||
LOG.log('\nno dotfile removed')
|
LOG.log('\nno dotfile removed')
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user