cosmos-sdk/cmd/basecoin/main.go

34 lines
595 B
Go
Raw Normal View History

package main
import (
2017-03-23 15:51:15 -07:00
"fmt"
2017-01-28 18:12:58 -08:00
"os"
"github.com/tendermint/basecoin/cmd/commands"
2017-02-26 10:51:39 -08:00
"github.com/tendermint/basecoin/version"
2017-01-28 18:12:58 -08:00
"github.com/urfave/cli"
)
func main() {
2017-01-28 18:12:58 -08:00
app := cli.NewApp()
app.Name = "basecoin"
app.Usage = "basecoin [command] [args...]"
2017-02-26 10:51:39 -08:00
app.Version = version.Version
2017-01-28 18:12:58 -08:00
app.Commands = []cli.Command{
commands.InitCmd,
commands.StartCmd,
commands.TxCmd,
commands.QueryCmd,
2017-02-07 13:10:17 -08:00
commands.KeyCmd,
2017-02-13 14:04:49 -08:00
commands.VerifyCmd,
commands.BlockCmd,
commands.AccountCmd,
2017-03-13 17:20:07 -07:00
commands.UnsafeResetAllCmd,
2017-01-28 18:12:58 -08:00
}
2017-03-23 15:51:15 -07:00
err := app.Run(os.Args)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}