1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 23:14:47 +00:00

dump config file with verbose flag

This commit is contained in:
deadc0de6
2018-12-27 11:04:19 +01:00
parent 270a532878
commit 90d60798c0
2 changed files with 3 additions and 1 deletions

View File

@@ -602,6 +602,7 @@ class Cfg:
self.lnk_settings[self.key_workdir] = self.curworkdir
# dump
ret = yaml.dump(self.content, default_flow_style=False, indent=2)
ret = ret.replace('{}', '')
# restore paths
self.lnk_settings[self.key_dotpath] = dotpath
self.lnk_settings[self.key_workdir] = workdir

View File

@@ -428,7 +428,8 @@ def main():
if opts['debug']:
LOG.dbg('config file: {}'.format(args['--cfg']))
LOG.dbg('opts: {}'.format(opts))
LOG.dbg('options:\n{}'.format(opts))
LOG.dbg('configs:\n{}'.format(conf.dump()))
# resolve dynamic paths
conf.eval_dotfiles(opts['profile'], debug=opts['debug'])