1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-26 06:01:08 +01:00
ascode/cmd/repl.go
2020-03-27 18:33:10 +01:00

20 lines
357 B
Go

package cmd
const (
REPLCmdShortDescription = "Run as interactive shell."
REPLCmdLongDescription = REPLCmdShortDescription + "\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
}