2016-02-07 22:54:49 -08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2017-05-12 11:29:13 -07:00
|
|
|
"os"
|
|
|
|
|
2017-03-08 23:19:07 -08:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
2017-02-07 10:16:41 -08:00
|
|
|
"github.com/tendermint/basecoin/cmd/commands"
|
2017-05-12 11:29:13 -07:00
|
|
|
"github.com/tendermint/tmlibs/cli"
|
2017-01-28 18:12:58 -08:00
|
|
|
)
|
|
|
|
|
2016-02-07 22:54:49 -08:00
|
|
|
func main() {
|
2017-03-08 23:19:07 -08:00
|
|
|
var RootCmd = &cobra.Command{
|
|
|
|
Use: "basecoin",
|
|
|
|
Short: "A cryptocurrency framework in Golang based on Tendermint-Core",
|
|
|
|
}
|
|
|
|
|
|
|
|
RootCmd.AddCommand(
|
2017-03-13 14:23:05 -07:00
|
|
|
commands.InitCmd,
|
2017-01-30 06:16:51 -08:00
|
|
|
commands.StartCmd,
|
2017-05-21 16:02:11 -07:00
|
|
|
commands.RelayCmd,
|
2017-03-13 17:20:07 -07:00
|
|
|
commands.UnsafeResetAllCmd,
|
2017-03-08 23:19:07 -08:00
|
|
|
commands.VersionCmd,
|
|
|
|
)
|
|
|
|
|
2017-05-12 11:29:13 -07:00
|
|
|
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)
|
|
|
|
}
|
2016-02-07 22:54:49 -08:00
|
|
|
}
|