neo-go/cli/main.go

29 lines
522 B
Go
Raw Normal View History

2018-01-26 18:04:13 +00:00
package main
import (
"os"
2018-01-26 18:04:13 +00:00
"github.com/CityOfZion/neo-go/cli/server"
"github.com/CityOfZion/neo-go/cli/smartcontract"
"github.com/CityOfZion/neo-go/cli/vm"
"github.com/CityOfZion/neo-go/cli/wallet"
"github.com/urfave/cli"
2018-01-26 18:04:13 +00:00
)
func main() {
ctl := cli.NewApp()
ctl.Name = "neo-go"
ctl.Usage = "Official Go client for Neo"
2018-01-26 18:04:13 +00:00
ctl.Commands = []cli.Command{
server.NewCommand(),
smartcontract.NewCommand(),
wallet.NewCommand(),
vm.NewCommand(),
}
if err := ctl.Run(os.Args); err != nil {
panic(err)
}
2018-01-26 18:04:13 +00:00
}