mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
#59 interface for editing config + more docs
This commit is contained in:
1 parent
906b192683
commit
8146a313f3
3 files changed
+65
-6
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user