added query subcommand register

This commit is contained in:
rigelrozanski 2017-02-09 19:46:50 -05:00
parent 948397e3c9
commit 50e787af0a
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ var (
}
)
// Register a subcommand of TxCmd to craft transactions for plugins
func RegisterQuerySubcommand(cmd cli.Command) {
QueryCmd.Subcommands = append(QueryCmd.Subcommands, cmd)
}
func cmdQuery(c *cli.Context) error {
if len(c.Args()) != 1 {
return errors.New("query command requires an argument ([key])")