mirror of
https://github.com/mcuadros/ascode
synced 2024-11-23 01:11:59 +01:00
4542cf80bd
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
20 lines
356 B
Go
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
|
|
}
|