Add roles cli test, coin query supports multiple apps in actor

This commit is contained in:
Ethan Frey
2017-07-19 16:14:26 +02:00
parent 911dd1423e
commit 63fc25e74e
7 changed files with 184 additions and 19 deletions
+4 -12
View File
@@ -1,12 +1,10 @@
package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
"github.com/tendermint/abci/version"
keycmd "github.com/tendermint/go-crypto/cmd"
"github.com/tendermint/tmlibs/cli"
@@ -37,15 +35,6 @@ tmcli to work for any custom abci app.
`,
}
// VersionCmd - command to show the application version
var VersionCmd = &cobra.Command{
Use: "version",
Short: "Show version info",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(version.Version)
},
}
func main() {
commands.AddBasicFlags(BaseCli)
@@ -56,6 +45,7 @@ func main() {
proofs.KeyQueryCmd,
coincmd.AccountQueryCmd,
noncecmd.NonceQueryCmd,
rolecmd.RoleQueryCmd,
)
proofs.TxPresenters.Register("base", txcmd.BaseTxPresenter{})
@@ -73,6 +63,8 @@ func main() {
txcmd.RootCmd.AddCommand(
// This is the default transaction, optional in your app
coincmd.SendTxCmd,
// this enables creating roles
rolecmd.CreateRoleTxCmd,
)
// Set up the various commands to use
@@ -85,7 +77,7 @@ func main() {
proofs.RootCmd,
txcmd.RootCmd,
proxy.RootCmd,
VersionCmd,
commands.VersionCmd,
auto.AutoCompleteCmd,
)