2017-02-07 10:16:41 -08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
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"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2017-03-08 23:19:07 -08:00
|
|
|
|
|
|
|
var RootCmd = &cobra.Command{
|
|
|
|
Use: "counter",
|
|
|
|
Short: "demo plugin for basecoin",
|
|
|
|
}
|
|
|
|
|
|
|
|
RootCmd.AddCommand(
|
2017-02-07 10:16:41 -08:00
|
|
|
commands.StartCmd,
|
|
|
|
commands.TxCmd,
|
|
|
|
commands.QueryCmd,
|
2017-03-08 23:19:07 -08:00
|
|
|
commands.KeyCmd,
|
|
|
|
commands.VerifyCmd,
|
|
|
|
commands.BlockCmd,
|
2017-02-07 10:16:41 -08:00
|
|
|
commands.AccountCmd,
|
2017-03-08 23:19:07 -08:00
|
|
|
commands.QuickVersionCmd("0.1.0"),
|
|
|
|
)
|
|
|
|
|
2017-04-15 09:07:27 -07:00
|
|
|
commands.ExecuteWithDebug(RootCmd)
|
2017-02-07 10:16:41 -08:00
|
|
|
}
|