An open API service indexing awesome lists of open source software.

https://github.com/emcfarlane/starlarkrepl

Starlark REPL
https://github.com/emcfarlane/starlarkrepl

Last synced: 11 months ago
JSON representation

Starlark REPL

Awesome Lists containing this project

README

          

# starlarkrepl

[![GoDev](https://img.shields.io/static/v1?label=godev&message=reference&color=00add8)](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)
```