Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(cli): enhance ChainListCmd with JSON output and <epoch> placeholder support #12691

Merged
merged 11 commits into from
Dec 6, 2024

Conversation

Kubuxu
Copy link
Contributor

@Kubuxu Kubuxu commented Nov 12, 2024

This PR updates the ChainListCmd with:

  • JSON output via <json_tipset> for compact tipset representation.
  • Support for <epoch> as a placeholder.
  • Streamlined format flag usage documentation.

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
@Kubuxu Kubuxu force-pushed the feat/better-list-formats branch from 5d26a70 to abbb75b Compare November 12, 2024 10:48
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, although just a --json that's mutually exclusive with --format might make this eaiser

@Kubuxu
Copy link
Contributor Author

Kubuxu commented Nov 18, 2024

I would expect --json to probably return block headers, which is not what I wanted here. I needed a nice way to resolve epoch to JSON tipset in API format to call louts-shed rpc with it.

@Kubuxu Kubuxu enabled auto-merge (squash) December 6, 2024 14:51
@Kubuxu Kubuxu disabled auto-merge December 6, 2024 14:51
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
@Kubuxu Kubuxu merged commit 6347eff into master Dec 6, 2024
83 checks passed
@Kubuxu Kubuxu deleted the feat/better-list-formats branch December 6, 2024 15:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging this pull request may close these issues.

2 participants