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
|
|
|
|
2018-02-09 16:08:50 +00:00
|
|
|
"github.com/CityOfZion/neo-go/cli/server"
|
|
|
|
"github.com/CityOfZion/neo-go/cli/smartcontract"
|
2018-03-02 15:24:09 +00:00
|
|
|
"github.com/CityOfZion/neo-go/cli/wallet"
|
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"
|
2018-02-24 09:10:45 +00:00
|
|
|
ctl.Usage = "Official Go client for Neo"
|
2018-01-26 18:04:13 +00:00
|
|
|
|
2018-02-09 16:08:50 +00:00
|
|
|
ctl.Commands = []cli.Command{
|
|
|
|
server.NewCommand(),
|
|
|
|
smartcontract.NewCommand(),
|
2018-03-02 15:24:09 +00:00
|
|
|
wallet.NewCommand(),
|
2018-02-01 08:00:42 +00:00
|
|
|
}
|
|
|
|
|
2018-02-09 16:08:50 +00:00
|
|
|
ctl.Run(os.Args)
|
2018-01-26 18:04:13 +00:00
|
|
|
}
|