This ensures scripts execute in the order they appear in the config file,
resolving the TODO in the README. The config format has been changed from
a table with script names as keys to an ordered list of script entries.
Changes:
- ctx.lua: Use ipairs() instead of pairs() to iterate in order
- config.lua: Update validation to handle new list structure
- conf.lua: Update example config to use new format
- README.md: Remove TODO and clarify execution order
New config format:
wantedScripts = {
{name = 'script1', config = {...}},
{name = 'script2', config = {...}}
}
11 lines
206 B
Lua
11 lines
206 B
Lua
return {
|
|
version = 1,
|
|
wantedScripts = {
|
|
{
|
|
name = 'webfinger_allowlist',
|
|
config = {
|
|
accounts = {"example@example.com"}
|
|
}
|
|
}
|
|
}
|
|
}
|