Implement loading/saving all configuration files at once
This commit is contained in:
parent
5c7669e09c
commit
89ac1c1ce3
10
threshold
10
threshold
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue