mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-30 15:01:35 +00:00
931388b687
* Virtual machine for the NEO blockhain. * fixed big.Int numeric operation pointer issue. * added appcall * Added README for vm package. * removed main.go * started VM cli (prompt) integration * added support for printing the stack. * moved cli to vm package * fixed vet errors * updated readme * added more test for VM and fixed some edge cases. * bumped version -> 0.37.0
23 lines
419 B
Go
23 lines
419 B
Go
package vm
|
|
|
|
import (
|
|
vmcli "github.com/CityOfZion/neo-go/pkg/vm/cli"
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
// NewCommand creates a new VM command.
|
|
func NewCommand() 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()
|
|
}
|