cosmos-sdk/docs/guide/src/example-plugin/main.go
rigelrozanski fb3fd1b425 added cli cobra
rebaseFixes

int

removed ExitOnErr

int

int

int

int

int

added uint64 to RegisterFlags
2017-04-21 12:34:11 -04:00

39 lines
659 B
Go

package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
"github.com/tendermint/basecoin/cmd/commands"
)
func main() {
//Initialize example-plugin root command
var RootCmd = &cobra.Command{
Use: "example-plugin",
Short: "example-plugin usage description",
}
//Add the default basecoin commands to the root command
RootCmd.AddCommand(
commands.InitCmd,
commands.StartCmd,
commands.TxCmd,
commands.QueryCmd,
commands.KeyCmd,
commands.VerifyCmd,
commands.BlockCmd,
commands.AccountCmd,
commands.UnsafeResetAllCmd,
)
//Run the root command
if err := RootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}