More work on listing mods nicely with node client.js manager

This commit is contained in:
Danielv123 committed 2017-11-05 17:50:14 +01:00
1 parent c901275f38
commit 0735aa2db4
4 files changed
+33 -19

No files matched your search

+8 -4
View File
@@ -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]) {