vm: move vm CLI to cli/vm package

This commit is contained in:
Anna Shaleva 2022-10-05 12:30:54 +03:00
parent 4a46001746
commit 0b717b0c22
4 changed files with 5 additions and 6 deletions

View file

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/nspcc-dev/neo-go/cli/options"
vmcli "github.com/nspcc-dev/neo-go/pkg/vm/cli"
vmcli "github.com/nspcc-dev/neo-go/cli/vm"
"github.com/urfave/cli"
)

View file

@ -1,4 +1,4 @@
package cli
package vm
import (
"bytes"

View file

@ -1,4 +1,4 @@
package cli
package vm
import (
"bytes"
@ -251,7 +251,7 @@ go 1.17`)
require (
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0
)
replace github.com/nspcc-dev/neo-go/pkg/interop => ` + filepath.Join(wd, "../../interop") + `
replace github.com/nspcc-dev/neo-go/pkg/interop => ` + filepath.Join(wd, "../../pkg/interop") + `
go 1.17`)
require.NoError(t, os.WriteFile(filepath.Join(tmpDir, "go.mod"), goMod, os.ModePerm))

View file

@ -5,7 +5,6 @@ import (
"github.com/chzyer/readline"
"github.com/nspcc-dev/neo-go/cli/cmdargs"
vmcli "github.com/nspcc-dev/neo-go/pkg/vm/cli"
"github.com/urfave/cli"
)
@ -23,6 +22,6 @@ func startVMPrompt(ctx *cli.Context) error {
if err := cmdargs.EnsureNone(ctx); err != nil {
return err
}
p := vmcli.NewWithConfig(true, os.Exit, &readline.Config{})
p := NewWithConfig(true, os.Exit, &readline.Config{})
return p.Run()
}