2018-01-26 19:04:13 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2018-02-09 17:08:50 +01:00
|
|
|
"os"
|
2018-01-26 19:04:13 +01:00
|
|
|
|
2018-02-09 17:08:50 +01:00
|
|
|
"github.com/CityOfZion/neo-go/cli/server"
|
|
|
|
"github.com/CityOfZion/neo-go/cli/smartcontract"
|
2018-03-30 18:15:06 +02:00
|
|
|
"github.com/CityOfZion/neo-go/cli/vm"
|
2018-03-02 16:24:09 +01:00
|
|
|
"github.com/CityOfZion/neo-go/cli/wallet"
|
2019-08-26 17:05:17 +03:00
|
|
|
"github.com/CityOfZion/neo-go/config"
|
2018-02-09 17:08:50 +01:00
|
|
|
"github.com/urfave/cli"
|
2018-01-26 19:04:13 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2018-02-09 17:08:50 +01:00
|
|
|
ctl := cli.NewApp()
|
|
|
|
ctl.Name = "neo-go"
|
2019-08-26 17:05:17 +03:00
|
|
|
ctl.Version = config.Version
|
2018-02-24 20:10:45 +11:00
|
|
|
ctl.Usage = "Official Go client for Neo"
|
2018-01-26 19:04:13 +01:00
|
|
|
|
2018-02-09 17:08:50 +01:00
|
|
|
ctl.Commands = []cli.Command{
|
|
|
|
server.NewCommand(),
|
|
|
|
smartcontract.NewCommand(),
|
2018-03-02 16:24:09 +01:00
|
|
|
wallet.NewCommand(),
|
2018-03-30 18:15:06 +02:00
|
|
|
vm.NewCommand(),
|
2018-02-01 09:00:42 +01:00
|
|
|
}
|
|
|
|
|
2019-01-25 14:20:35 +03:00
|
|
|
if err := ctl.Run(os.Args); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2018-01-26 19:04:13 +01:00
|
|
|
}
|