New functionality where the Handler class generates a modules.json file under ./data/ which lets you "disable" modules, causing them to no longer be touched by requireDirectory, retaining the option of manually loading them.
Dependant on #25, and is the reason behind it.
This way, disabling modules doesn't involve changing the file extensions and plays much nicer with git, although the method of tacking .disabled onto the end of a module won't ever stop working.
Could do with new accompanying enable and disable command in the module commands module that also loads/unloads modules appropriately when enabled/disabled.
New functionality where the Handler class generates a
modules.json
file under./data/
which lets you "disable" modules, causing them to no longer be touched by requireDirectory, retaining the option of manually loading them.Dependant on #25, and is the reason behind it.
This way, disabling modules doesn't involve changing the file extensions and plays much nicer with git, although the method of tacking
.disabled
onto the end of a module won't ever stop working.Could do with new accompanying
enable
anddisable
command in the module commands module that also loads/unloads modules appropriately when enabled/disabled.