Added some changes to call and added builtins
All checks were successful
Build / build (push) Successful in 2m32s
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:
parent
109be33d14
commit
e7f904e7da
12 changed files with 421 additions and 25 deletions
|
|
@ -24,6 +24,7 @@ func main() {
|
|||
ucl.WithModule(builtins.Itrs()),
|
||||
ucl.WithModule(builtins.OS()),
|
||||
ucl.WithModule(builtins.Strs()),
|
||||
ucl.WithModule(builtins.Lists()),
|
||||
ucl.WithModule(builtins.Time()),
|
||||
)
|
||||
ctx := context.Background()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
})),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue