Fix all tests with new tendermint style

This commit is contained in:
Ethan Frey
2017-05-12 20:54:50 +02:00
parent 73435303af
commit 2324f5d766
5 changed files with 26 additions and 19 deletions
-2
View File
@@ -24,8 +24,6 @@ var (
//Called during CLI initialization
func init() {
commands.DefaultHome = ".basecoin-example-plugin"
//Set the Plugin Flags
ExamplePluginTxCmd.Flags().BoolVar(&validFlag, "valid", false, "Set this to make transaction valid")
+5 -2
View File
@@ -1,9 +1,12 @@
package main
import (
"os"
"github.com/spf13/cobra"
"github.com/tendermint/basecoin/cmd/commands"
"github.com/tendermint/tmlibs/cli"
)
func main() {
@@ -27,6 +30,6 @@ func main() {
commands.UnsafeResetAllCmd,
)
//Run the root command
commands.ExecuteWithDebug(RootCmd)
cmd := cli.PrepareMainCmd(RootCmd, "BC", os.ExpandEnv("$HOME/.basecoin-example-plugin"))
cmd.Execute()
}