Implement loading/saving all configuration files at once

This commit is contained in:
Mark Veidemanis 2018-02-02 18:56:50 +00:00
parent 5c7669e09c
commit 89ac1c1ce3
3 changed files with 12 additions and 2 deletions

View File

@ -512,6 +512,11 @@ class Helper(object):
self.save(spl[1]) self.save(spl[1])
success("Saved %s to %s" % (spl[1], filemap[spl[1]][0])) success("Saved %s to %s" % (spl[1], filemap[spl[1]][0]))
return return
elif spl[1] == "all":
for i in filemap.keys():
helper.save(i)
success("Saved %s from %s" % (i, filemap[i][0]))
return
else: else:
incUsage("save") incUsage("save")
return return
@ -525,6 +530,11 @@ class Helper(object):
self.load(spl[1]) self.load(spl[1])
success("Loaded %s from %s" % (spl[1], filemap[spl[1]][0])) success("Loaded %s from %s" % (spl[1], filemap[spl[1]][0]))
return return
elif spl[1] == "all":
for i in filemap.keys():
helper.load(i)
success("Loaded %s from %s" % (i, filemap[i][0]))
return
else: else:
incUsage("load") incUsage("load")
return return