Started working on a REPL helper
This commit is contained in:
parent
fdbaf1c8cc
commit
5b4e45ff80
5 changed files with 110 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"github.com/chzyer/readline"
|
||||
"log"
|
||||
"ucl.lmika.dev/repl"
|
||||
"ucl.lmika.dev/ucl"
|
||||
"ucl.lmika.dev/ucl/builtins"
|
||||
)
|
||||
|
|
@ -15,7 +16,7 @@ func main() {
|
|||
}
|
||||
defer rl.Close()
|
||||
|
||||
inst := ucl.New(
|
||||
instRepl := repl.New(
|
||||
ucl.WithModule(builtins.OS()),
|
||||
ucl.WithModule(builtins.FS(nil)),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue