mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 17:49:01 +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
|
self.lnk_settings[self.key_workdir] = self.curworkdir
|
||||||
# dump
|
# dump
|
||||||
ret = yaml.dump(self.content, default_flow_style=False, indent=2)
|
ret = yaml.dump(self.content, default_flow_style=False, indent=2)
|
||||||
|
ret = ret.replace('{}', '')
|
||||||
# restore paths
|
# restore paths
|
||||||
self.lnk_settings[self.key_dotpath] = dotpath
|
self.lnk_settings[self.key_dotpath] = dotpath
|
||||||
self.lnk_settings[self.key_workdir] = workdir
|
self.lnk_settings[self.key_workdir] = workdir
|
||||||
|
|||||||
@@ -428,7 +428,8 @@ def main():
|
|||||||
|
|
||||||
if opts['debug']:
|
if opts['debug']:
|
||||||
LOG.dbg('config file: {}'.format(args['--cfg']))
|
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
|
# resolve dynamic paths
|
||||||
conf.eval_dotfiles(opts['profile'], debug=opts['debug'])
|
conf.eval_dotfiles(opts['profile'], debug=opts['debug'])
|
||||||
|
|||||||
Reference in New Issue
Block a user