From 50e787af0a331eab8c97f9791d2c0ba1e1ed264d Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Thu, 9 Feb 2017 19:46:50 -0500 Subject: [PATCH] added query subcommand register --- cmd/commands/query.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/commands/query.go b/cmd/commands/query.go index 41635e288..d8fd980f2 100644 --- a/cmd/commands/query.go +++ b/cmd/commands/query.go @@ -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])")