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