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"
|
|
|
|
"github.com/nspcc-dev/neo-go/cli/vm"
|
|
|
|
"github.com/nspcc-dev/neo-go/cli/wallet"
|
|
|
|
"github.com/nspcc-dev/neo-go/config"
|
2018-02-09 16:08:50 +00:00
|
|
|
"github.com/urfave/cli"
|
2018-01-26 18:04:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
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()...)
|
2018-02-01 08:00:42 +00:00
|
|
|
|
2019-01-25 11:20:35 +00:00
|
|
|
if err := ctl.Run(os.Args); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2018-01-26 18:04:13 +00:00
|
|
|
}
|