Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pagination to list records CLI (#82)
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8) Requires https://git.vdb.to/cerc-io/registry-sdk/pulls/27 Example CLI commands with changes: ```bash laconic registry record list --type WebsiteRegistrationRecord --all true | jq 'length' # 16 laconic registry record list --limit 4 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]' # [ # { # "id": "bafyreifmjc7kc76ihrolzqhynwrebjyr7bw7pstlv2lcdq5qu4cleql7ke", # "createTime": "2024-09-05T13:25:46Z" # }, # { # "id": "bafyreifipscluxu43nx5frx54tyxnkkki2edsw3jydgexfjsluq674esfa", # "createTime": "2024-09-05T13:25:49Z" # }, # { # "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy", # "createTime": "2024-09-05T13:25:52Z" # }, # { # "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe", # "createTime": "2024-09-05T13:25:55Z" # } # ] laconic registry record list --limit 4 --offset 2 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]' # [ # { # "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy", # "createTime": "2024-09-05T13:25:52Z" # }, # { # "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe", # "createTime": "2024-09-05T13:25:55Z" # }, # { # "id": "bafyreieku22he546fsxrgwxd3mfpbtcobwjasl6zimkizl65rwvybwerci", # "createTime": "2024-09-05T13:25:58Z" # }, # { # "id": "bafyreia4zjuap7v3tnilersrzsht75mqf3mhzsk72jgpcct7u6lj54zwyq", # "createTime": "2024-09-05T13:26:01Z" # } # ] ``` Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Reviewed-on: https://git.vdb.to/cerc-io/laconic-registry-cli/pulls/82 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
- Loading branch information