Added some changes to call and added builtins
All checks were successful
Build / build (push) Successful in 2m32s

- call now supports calling invokables by string
- call now takes as arguments a listable of positional args, and a hashable of keyword args
- added strs:split, strs:join, and strs:has-prefix
- added new lists module with lists:first
- added time:sleep
This commit is contained in:
Leon Mika 2025-05-17 13:59:44 +10:00
parent 109be33d14
commit e7f904e7da
12 changed files with 421 additions and 25 deletions

View file

@ -27,6 +27,7 @@ func initJS(ctx context.Context) {
ucl.WithModule(builtins.Strs()),
ucl.WithModule(builtins.Time()),
ucl.WithModule(builtins.Itrs()),
ucl.WithModule(builtins.Lists()),
ucl.WithOut(ucl.LineHandler(func(line string) {
invokeUCLCallback("onOutLine", line)
})),