cosmos-sdk/cmd/basecoin/main.go

31 lines
559 B
Go
Raw Normal View History

package main
import (
"os"
"github.com/spf13/cobra"
"github.com/tendermint/basecoin/cmd/commands"
"github.com/tendermint/tmlibs/cli"
2017-01-28 18:12:58 -08:00
)
func main() {
var RootCmd = &cobra.Command{
Use: "basecoin",
Short: "A cryptocurrency framework in Golang based on Tendermint-Core",
}
RootCmd.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,
)
cmd := cli.PrepareMainCmd(RootCmd, "BC", os.ExpandEnv("$HOME/.basecoin"))
2017-05-13 17:03:46 -07:00
if err := cmd.Execute(); err != nil {
os.Exit(1)
}
}