make wantedScripts an ordered list #3

Merged
luna merged 1 commit from claude/aproxy-readme-todo-01Xkjy2nyHBYcMqRcFXVbH2x into mistress 2025-11-23 20:17:28 +00:00

1 commit

Author SHA1 Message Date
Claude
c01c6d0ba1 Change wantedScripts to ordered list format
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 = {...}}
}
2025-11-23 17:16:23 -03:00