1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-26 06:01:08 +01:00
ascode/cmd/repl.go
Máximo Cuadros 4542cf80bd starlark/runtime: load fixes and REPL, and CLI implementation
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
2019-07-11 23:59:04 +02:00

20 lines
356 B
Go

package cmd
const (
REPLCmdShortDescription = "Run as interactive shell."
REPLCmdLongDescription = RunCmdShortDescription + "\n\n" +
"The REPL shell provides the same capabilities as the regular `run`\n" +
"command."
)
type REPLCmd struct {
commonCmd
}
func (c *REPLCmd) Execute(args []string) error {
c.init()
c.runtime.REPL()
return nil
}