Implement loading/saving all configuration files at once
This commit is contained in:
parent
5c7669e09c
commit
89ac1c1ce3
|
@ -16,4 +16,4 @@
|
||||||
"save": "save <config|keyconf|pool|help|wholist|all>",
|
"save": "save <config|keyconf|pool|help|wholist|all>",
|
||||||
"load": "load <config|keyconf|pool|help|wholist|all>",
|
"load": "load <config|keyconf|pool|help|wholist|all>",
|
||||||
"dist": "dist"
|
"dist": "dist"
|
||||||
}
|
}
|
|
@ -3,4 +3,4 @@
|
||||||
"example"
|
"example"
|
||||||
],
|
],
|
||||||
"KeywordsExcept": {}
|
"KeywordsExcept": {}
|
||||||
}
|
}
|
10
threshold
10
threshold
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue