neo-go/cli/main.go
Evgeniy Kulikov f000b76879 [FIX] Formatting and code-style (#118)
* [FIX] Formatting and code-style

- gofmt
- import resort
- prealloc slices
- simplify code

* fix vet
2019-01-25 12:20:35 +01:00

28 lines
522 B
Go

package main
import (
"os"
"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"
)
func main() {
ctl := cli.NewApp()
ctl.Name = "neo-go"
ctl.Usage = "Official Go client for Neo"
ctl.Commands = []cli.Command{
server.NewCommand(),
smartcontract.NewCommand(),
wallet.NewCommand(),
vm.NewCommand(),
}
if err := ctl.Run(os.Args); err != nil {
panic(err)
}
}