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:
@@ -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
|
||||
|
||||
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user