add other tests and update docs

This commit is contained in:
Federico Kunze
2018-11-27 15:16:33 +01:00
parent a2189bc672
commit 666fafb97a
3 changed files with 299 additions and 299 deletions
+3 -3
View File
@@ -35,12 +35,12 @@ passed to the --tag option. To match any transaction, use the --any option.
For example:
$ gaiacli query txs --tags <key1>:<value1>&<key2>:<value2>
$ gaiacli query txs --tags <tag1>:<value1>&<tag2>:<value2>
will match any transaction tagged with both <key1>=<value1> and <key2>=<value2>.
To match a transaction tagged with either value1 or value2, use:
$ gaiacli query txs --tags <key1>:<value1>&<key2>:<value2> --any
$ gaiacli query txs --tags <tag1>:<value1>&<tag2>:<value2> --any
`),
RunE: func(cmd *cobra.Command, args []string) error {
tagsStr := viper.GetString(flagTags)
@@ -97,7 +97,7 @@ $ gaiacli query txs --tags <key1>:<value1>&<key2>:<value2> --any
viper.BindPFlag(client.FlagChainID, cmd.Flags().Lookup(client.FlagChainID))
cmd.Flags().Bool(client.FlagTrustNode, false, "Trust connected full node (don't verify proofs for responses)")
viper.BindPFlag(client.FlagTrustNode, cmd.Flags().Lookup(client.FlagTrustNode))
cmd.Flags().String(flagTags, "", "key:value list of tags that must match")
cmd.Flags().String(flagTags, "", "tag:value list of tags that must match")
cmd.Flags().Bool(flagAny, false, "Return transactions that match ANY tag, rather than ALL")
return cmd
}