-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
35 lines (32 loc) · 967 Bytes
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
local namespace = {}
local overrides = require('overrides')
-- local iteration = require('iteration')
local discovery = require('discovery')
return {
enable = function(self, config)
overrides.enable(config)
discovery.enable(config)
end,
disable = function(self, config)
end,
overrideFileWith = function(self, file, newFile)
overrides.overrideFileWith(file, newFile)
end,
registerOverrideFunction = function(self, func)
overrides.registerOverrideFunction(func)
end,
setIterationOption = function(self, key, value)
discovery.setOption(key, value)
end,
---@type fun(self: table, path: string):void
registerFileSource = function(self, path)
overrides.registerFileSource(path)
end,
}, {
public = {
"overrideFileWith",
"registerOverrideFunction",
"setIterationOption",
'registerFileSource',
}
}