mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
e319c6c638
Make inspect work with avms by default and with go files if told so. In the end this makes our CLI interface more consistent and usable. Drop useless CompileAndInspect() compiler method along the way.
23 lines
423 B
Go
23 lines
423 B
Go
package vm
|
|
|
|
import (
|
|
vmcli "github.com/CityOfZion/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()
|
|
}
|