Support customization of output of list commands like glab ci list or glab mr list
Problem to solve
As a software engineer, I want to customize output format of list commands like glab ci list and glab mr list to fit my needs, so I can stay in terminal or IDE and no need to open browser to handle git stuffs any more.
Proposal
Since most list command returns structured JSON objects, a template string with JSON fields will be easily configured and used to format list commands outputs.
For example, glab ci list with an argument --field "$iid $target_branch $source_branch $title $author.name" should could return a table of ci with 5 columns configured in the field argument.
Further details
I found that there are many open similar or related issues which shows a strong need for customization of outputs of list commands. And the field argument would be a common approach to solve similar or related issues.
See more details about the field argument in #825 (closed)
By the way, the earliest issue I found is from 2022 and it's 2025 now. I think we should make some effort to make our daily use tools more handy.
Links / references
Similar or related issues: