From eb1b863cec4f90d1769b17610c7312fd52b63dd0 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 12 Sep 2019 16:17:56 +0200 Subject: [PATCH] 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. --- CHANGELOG.md | 1 + client.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64085b0a..1eff9067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/client.js b/client.js index d237a28c..c16b3b9b 100644 --- a/client.js +++ b/client.js @@ -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); }