mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 19:19:44 +00:00
23 lines
422 B
Go
23 lines
422 B
Go
package vm
|
|
|
|
import (
|
|
vmcli "github.com/nspcc-dev/neo-go/pkg/vm/cli"
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
// NewCommands returns 'vm' command.
|
|
func NewCommands() []cli.Command {
|
|
return []cli.Command{{
|
|
Name: "vm",
|
|
Usage: "start the virtual machine",
|
|
Action: startVMPrompt,
|
|
Flags: []cli.Flag{
|
|
cli.BoolFlag{Name: "debug, d"},
|
|
},
|
|
}}
|
|
}
|
|
|
|
func startVMPrompt(ctx *cli.Context) error {
|
|
p := vmcli.New()
|
|
return p.Run()
|
|
}
|