mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
More work on listing mods nicely with node client.js manager
This commit is contained in:
1 parent
c901275f38
commit
0735aa2db4
4 files changed
+33
-19
No files matched your search
@@ -123,10 +123,14 @@ if (!command || command == "help" || command == "--help") {
|
||||
displayLines.forEach(line => console.log(line));
|
||||
process.exit(1);
|
||||
} else if (command == "manage"){
|
||||
console.log("Launching mod manager");
|
||||
|
||||
modManager.listMods(instance);
|
||||
|
||||
// console.log("Launching mod manager");
|
||||
const action = process.argv[4];
|
||||
if(instance && action && action == "list"){
|
||||
modManager.listMods(instance);
|
||||
} else {
|
||||
console.log('Usage:');
|
||||
console.log('node client.js manage [instance, "shared"] ["list"]');
|
||||
}
|
||||
// process.exit(1);
|
||||
} else if (command == "delete") {
|
||||
if (!process.argv[3]) {
|
||||
|
||||
Reference in new issue
Block a user