Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

pagination and/or export to file for listing commands #33

Open
ddayan opened this issue Mar 27, 2024 · 2 comments
Open

pagination and/or export to file for listing commands #33

ddayan opened this issue Mar 27, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ddayan
Copy link
Contributor

ddayan commented Mar 27, 2024

Is your feature request related to a problem? Please describe

comx module list --netuid 0

Writes all the modules into the terminal which makes it impossible to scroll when there's too many modules on a subnet.

Describe the solution you'd like

Paging like in less and an option to write output to a file.

Describe alternatives you've considered

comx module list --netuid 0 | less
comx module list --netuid 0 >> module_list

Additional context

Can use a package like:
https://github.com/zaneb/autopage

@Supremesource
Copy link
Member

Supremesource commented Apr 25, 2024

We have been planning to do this for quite a while now. If you would be willing to send a good PR, we would be happy to pay a bounty in commune tokens.

@steinerkelvin
Copy link
Contributor

steinerkelvin commented Apr 25, 2024

Ya, we can add some sort of auto pagination on interactive mode.
But we need to do quite some refactors before doing this kind of thing. So, I'd recommend no working on a PR on this.

@steinerkelvin steinerkelvin added the enhancement New feature or request label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants