add other tests and update docs
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user