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])")