Remove unimplemented mods update command

Remove the mods update command from the client command line interface as
this calls the non-existant modManager.updateAllMods function.
This commit is contained in:
Hornwitser committed 2019-09-14 01:15:36 +02:00
1 parent 2428cba2bd
commit eb1b863cec
2 files changed
+2 -3

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ Version 2.0.0
- Changed ssl key creation to be done at startup instead of on npm install.
- Added error handling during master startup.
- Factorio game and rcon port now defaults to a random port above 49151.
- Removed unimplemented mods update command.
### Breaking Changes
+1 -3
View File
@@ -138,7 +138,7 @@ async function manage() {
//const fullUsage = 'node client.js manage [instance, "shared"] ["mods", "config"] ...';
function usage(instance, tool, action){
if(tool && tool == "mods"){
console.log('node client.js manage '+instance+' '+tool+' ["list", "search", "add", "remove", "update"]');
console.log('node client.js manage '+instance+' '+tool+' ["list", "search", "add", "remove"]');
} else if(tool && tool == "config") {
console.log('node client.js manage '+instance+' '+tool+' ["list", "edit"]');
} else if(tool && tool == "plugins") {
@@ -164,8 +164,6 @@ async function manage() {
await modManager.addMod(process.argv[6], instance);
} else if(action == "remove" || action == "rm" || action == "delete"){
await modManager.removeMod(process.argv[6], instance);
} else if(action == "update"){
await modManager.updateAllMods();
} else {
usage(instance, tool);
}