Enable and disable plugins from the commandline (non functional as of yet)

This commit is contained in:
Daniel Vestøl committed 2018-08-15 23:15:01 +02:00
1 parent e71c183b48
commit a76e07c07b
4 files changed
+76 -12

No files matched your search

+6
View File
@@ -235,6 +235,12 @@ if (!command || command == "help" || command == "--help") {
} else if(action == "remove" || action == "uninstall" || action == "delete"){
let status = await pluginManager.removePlugin(process.argv[6]);
if(status && status.msg) console.log(status.msg);
} else if(action == "enable"){
let status = await pluginManager.enablePlugin(process.argv[6]);
if(status && status.msg) console.log(status.msg);
} else if(action == "disable"){
let status = await pluginManager.disablePlugin(process.argv[6]);
if(status && status.msg) console.log(status.msg);
}
process.exit(0);
}catch(e){