cosmos-sdk/cmd/basecoin/main.go

26 lines
426 B
Go
Raw Normal View History

package main
import (
"os"
2017-06-20 21:26:21 -07:00
"github.com/tendermint/basecoin/cmd/basecoin/commands"
"github.com/tendermint/tmlibs/cli"
2017-01-28 18:12:58 -08:00
)
func main() {
2017-06-26 05:28:56 -07:00
rt := commands.RootCmd
2017-06-26 05:28:56 -07:00
rt.AddCommand(
commands.InitCmd,
commands.StartCmd,
2017-05-21 16:02:11 -07:00
commands.RelayCmd,
2017-03-13 17:20:07 -07:00
commands.UnsafeResetAllCmd,
commands.VersionCmd,
)
2017-06-26 05:28:56 -07:00
cmd := cli.PrepareMainCmd(rt, "BC", os.ExpandEnv("$HOME/.basecoin"))
2017-05-13 17:03:46 -07:00
if err := cmd.Execute(); err != nil {
os.Exit(1)
}
}