Skip to content

Commit

Permalink
fix(query): unknown flag: --page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jmastr committed Nov 14, 2024
1 parent 6745310 commit 25e3d9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions x/asset/client/cli/query_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func GetCmdByAddress() *cobra.Command {
},
}

flags.AddPaginationFlagsToCmd(cmd, cmd.Use)
flags.AddQueryFlagsToCmd(cmd)

return cmd
Expand Down
1 change: 1 addition & 0 deletions x/dao/client/cli/query_challenges.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func GetCmdChallenges() *cobra.Command {
},
}

flags.AddPaginationFlagsToCmd(cmd, cmd.Use)
flags.AddQueryFlagsToCmd(cmd)

return cmd
Expand Down
1 change: 1 addition & 0 deletions x/dao/client/cli/query_reissuances.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func GetCmdReissuances() *cobra.Command {
},
}

flags.AddPaginationFlagsToCmd(cmd, cmd.Use)
flags.AddQueryFlagsToCmd(cmd)

return cmd
Expand Down

0 comments on commit 25e3d9c

Please sign in to comment.