mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
fix(query): unknown flag: --page
some query commands use pagination when delivering results: ``` pageReq, err := client.ReadPageRequest(cmd.Flags()) if err != nil { return err } ``` to be able to use this feature, we need to add pagination related flags to the `cmd`. Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
parent
67453107d1
commit
25e3d9c70f
@ -52,6 +52,7 @@ func GetCmdByAddress() *cobra.Command {
|
||||
},
|
||||
}
|
||||
|
||||
flags.AddPaginationFlagsToCmd(cmd, cmd.Use)
|
||||
flags.AddQueryFlagsToCmd(cmd)
|
||||
|
||||
return cmd
|
||||
|
@ -41,6 +41,7 @@ func GetCmdChallenges() *cobra.Command {
|
||||
},
|
||||
}
|
||||
|
||||
flags.AddPaginationFlagsToCmd(cmd, cmd.Use)
|
||||
flags.AddQueryFlagsToCmd(cmd)
|
||||
|
||||
return cmd
|
||||
|
@ -41,6 +41,7 @@ func GetCmdReissuances() *cobra.Command {
|
||||
},
|
||||
}
|
||||
|
||||
flags.AddPaginationFlagsToCmd(cmd, cmd.Use)
|
||||
flags.AddQueryFlagsToCmd(cmd)
|
||||
|
||||
return cmd
|
||||
|
Loading…
x
Reference in New Issue
Block a user