mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
f000b76879
* [FIX] Formatting and code-style - gofmt - import resort - prealloc slices - simplify code * fix vet
28 lines
522 B
Go
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)
|
|
}
|
|
}
|