agicommies / communex

alternative commune cli/sdk
MIT No Attribution
25 stars 16 forks source link

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

Open ddayan opened 5 months ago

ddayan commented 5 months ago

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 commented 4 months ago

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 commented 4 months ago

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.