#59 interface for editing config + more docs

This commit is contained in:
Danielv123 committed 2017-11-11 23:51:52 +01:00
1 parent 906b192683
commit 8146a313f3
3 files changed
+65 -6

No files matched your search

+9 -1
View File
@@ -154,7 +154,15 @@ if (!command || command == "help" || command == "--help") {
if(action == "list" || action == "show" || action == "display"){
configManager.displayConfig(instance);
} else if(action == "edit"){
configManager.editConfig(instance, process.argv);
let newConfigValue = "";
process.argv.forEach((arg, i)=>{
if(i >= 8){
newConfigValue += " "+arg;
} else if(i >= 7){
newConfigValue += arg;
}
});
configManager.editConfig(instance, process.argv[6], newConfigValue);
} else {
usage(instance, tool);
}