2016-02-07 22:54:49 -08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2017-03-23 15:51:15 -07:00
|
|
|
"fmt"
|
2017-01-28 18:12:58 -08:00
|
|
|
"os"
|
2016-02-07 22:54:49 -08:00
|
|
|
|
2017-02-07 10:16:41 -08:00
|
|
|
"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"
|
|
|
|
)
|
|
|
|
|
2016-02-07 22:54:49 -08:00
|
|
|
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{
|
2017-03-13 14:23:05 -07:00
|
|
|
commands.InitCmd,
|
2017-01-30 06:16:51 -08:00
|
|
|
commands.StartCmd,
|
2017-02-07 10:16:41 -08:00
|
|
|
commands.TxCmd,
|
2017-01-30 06:16:51 -08:00
|
|
|
commands.QueryCmd,
|
2017-02-07 13:10:17 -08:00
|
|
|
commands.KeyCmd,
|
2017-02-13 14:04:49 -08:00
|
|
|
commands.VerifyCmd,
|
|
|
|
commands.BlockCmd,
|
2017-01-30 06:16:51 -08:00
|
|
|
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)
|
|
|
|
}
|
2016-02-07 22:54:49 -08:00
|
|
|
}
|