https://github.com/emcfarlane/starlarkrepl
Starlark REPL
https://github.com/emcfarlane/starlarkrepl
Last synced: 11 months ago
JSON representation
Starlark REPL
- Host: GitHub
- URL: https://github.com/emcfarlane/starlarkrepl
- Owner: emcfarlane
- License: bsd-3-clause
- Created: 2020-03-18T23:10:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T00:08:45.000Z (about 6 years ago)
- Last Synced: 2025-03-23T13:52:34.573Z (over 1 year ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# starlarkrepl
[](https://pkg.go.dev/github.com/emcfarlane/starlarkrepl?tab=doc)
Experimental autocompletion REPL for starlark-go based on [liner](https://github.com/peterh/liner).
```go
thread := &starlark.Thread{Load: repl.MakeLoad()}
globals := make(starlark.StringDict)
options := starlarkrepl.Options{
AutoComplete: true,
HistoryFile: "history.txt",
}
starlarkrepl.Run(thread, globals, options)
```