Add locally provided plugins by default

This commit is contained in:
Danielv123 committed 2024-11-25 12:22:16 +00:00
1 parent 05ca4eb25e
commit 636777d935
6 files changed
+87 -24

No files matched your search

+1 -8
View File
@@ -188,14 +188,7 @@ async function startControl() {
lib.handleUnhandledErrors();
logger.verbose(`Loading available plugins from ${args.pluginList}`);
let pluginList = new Map();
try {
pluginList = new Map(JSON.parse(await fs.readFile(args.pluginList, "utf8")));
} catch (err: any) {
if (err.code !== "ENOENT") {
throw err;
}
}
let pluginList = await lib.loadPluginList(args.pluginList);
// If the command is plugin management we don't try to load plugins
if (args._[0] === "plugin") {