Skip to content

Conversation

RezaRahemtola
Copy link
Member

@RezaRahemtola RezaRahemtola commented Jul 31, 2025

This PR implements the missing --json parameter that is in the option but not actually taken into account.
It displays with indentation the raw data, which can then be used by the user / parsed by automation scripts etc.

We could consider filtering this data in the future to reduce the amount of data displayed, some of which is probably irrelevant, but kept it simple for now.

Self proofreading checklist

  • The new code clear, easy to read and well commented.
  • New code does not duplicate the functions of builtin or popular libraries.
  • An LLM was used to review the new code and look for simplifications.
  • New classes and functions contain docstrings explaining what they provide.
  • All new code is covered by relevant tests.

How to test

Simply run aleph instance list --json with an account that has instances (or pass --address, for example with 0x501DD421f2B9F96E3e20945f42aeCBDd4A607a03

Print screen / video

image

@RezaRahemtola RezaRahemtola self-assigned this Jul 31, 2025
@RezaRahemtola RezaRahemtola added the BLUE This PR is simple and straightforward. label Jul 31, 2025
@RezaRahemtola RezaRahemtola force-pushed the reza/fix-instance-list-json branch from 772ca63 to 7234d7a Compare July 31, 2025 20:15
@aleph-im aleph-im deleted a comment from github-actions bot Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLUE This PR is simple and straightforward.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants