e93dfe8062
* Print proper error messages while using contract subcommands and also exit with status code 1. * Make -in a flag, also remove dot from avm extension. * Work on feedback by Anthony. * Update README and VERSION
22 lines
358 B
Go
22 lines
358 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/CityOfZion/neo-go/cli/server"
|
|
"github.com/CityOfZion/neo-go/cli/smartcontract"
|
|
"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(),
|
|
}
|
|
|
|
ctl.Run(os.Args)
|
|
}
|