2018-01-26 18:04:13 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2018-02-09 16:08:50 +00:00
|
|
|
"os"
|
2018-01-26 18:04:13 +00:00
|
|
|
|
2020-03-03 14:21:42 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/cli/server"
|
|
|
|
"github.com/nspcc-dev/neo-go/cli/smartcontract"
|
2020-08-04 06:40:06 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/cli/util"
|
2020-03-03 14:21:42 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/cli/vm"
|
|
|
|
"github.com/nspcc-dev/neo-go/cli/wallet"
|
2020-03-25 15:30:21 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/config"
|
2018-02-09 16:08:50 +00:00
|
|
|
"github.com/urfave/cli"
|
2018-01-26 18:04:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2020-08-29 11:41:33 +00:00
|
|
|
ctl := newApp()
|
|
|
|
|
|
|
|
if err := ctl.Run(os.Args); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newApp() *cli.App {
|
2018-02-09 16:08:50 +00:00
|
|
|
ctl := cli.NewApp()
|
|
|
|
ctl.Name = "neo-go"
|
2019-08-26 14:05:17 +00:00
|
|
|
ctl.Version = config.Version
|
2018-02-24 09:10:45 +00:00
|
|
|
ctl.Usage = "Official Go client for Neo"
|
2018-01-26 18:04:13 +00:00
|
|
|
|
2019-10-19 20:58:45 +00:00
|
|
|
ctl.Commands = append(ctl.Commands, server.NewCommands()...)
|
|
|
|
ctl.Commands = append(ctl.Commands, smartcontract.NewCommands()...)
|
|
|
|
ctl.Commands = append(ctl.Commands, wallet.NewCommands()...)
|
|
|
|
ctl.Commands = append(ctl.Commands, vm.NewCommands()...)
|
2020-08-04 06:40:06 +00:00
|
|
|
ctl.Commands = append(ctl.Commands, util.NewCommands()...)
|
2020-08-29 11:41:33 +00:00
|
|
|
return ctl
|
2018-01-26 18:04:13 +00:00
|
|
|
}
|