mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 08:23:12 +09:00
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:
1 parent
2428cba2bd
commit
eb1b863cec
2 files changed
+2
-3
No files matched your search
@@ -8,6 +8,7 @@ Version 2.0.0
|
|||||||
- Changed ssl key creation to be done at startup instead of on npm install.
|
- Changed ssl key creation to be done at startup instead of on npm install.
|
||||||
- Added error handling during master startup.
|
- Added error handling during master startup.
|
||||||
- Factorio game and rcon port now defaults to a random port above 49151.
|
- Factorio game and rcon port now defaults to a random port above 49151.
|
||||||
|
- Removed unimplemented mods update command.
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ async function manage() {
|
|||||||
//const fullUsage = 'node client.js manage [instance, "shared"] ["mods", "config"] ...';
|
//const fullUsage = 'node client.js manage [instance, "shared"] ["mods", "config"] ...';
|
||||||
function usage(instance, tool, action){
|
function usage(instance, tool, action){
|
||||||
if(tool && tool == "mods"){
|
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") {
|
} else if(tool && tool == "config") {
|
||||||
console.log('node client.js manage '+instance+' '+tool+' ["list", "edit"]');
|
console.log('node client.js manage '+instance+' '+tool+' ["list", "edit"]');
|
||||||
} else if(tool && tool == "plugins") {
|
} else if(tool && tool == "plugins") {
|
||||||
@@ -164,8 +164,6 @@ async function manage() {
|
|||||||
await modManager.addMod(process.argv[6], instance);
|
await modManager.addMod(process.argv[6], instance);
|
||||||
} else if(action == "remove" || action == "rm" || action == "delete"){
|
} else if(action == "remove" || action == "rm" || action == "delete"){
|
||||||
await modManager.removeMod(process.argv[6], instance);
|
await modManager.removeMod(process.argv[6], instance);
|
||||||
} else if(action == "update"){
|
|
||||||
await modManager.updateAllMods();
|
|
||||||
} else {
|
} else {
|
||||||
usage(instance, tool);
|
usage(instance, tool);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user