Change output fields printed out by issue list
Created by: mmngreco
Describe the feature or problem you'd like to solve
I'm a real fan of this tool, When I call to issue ls I realized that many times I only need certain fields from the output, like the issue id and the title (creation time is useless almost always and consumes precious space). Could be an interesting feature to let the users choose what fields they want.
Propose a Solution
I think that including a new argument, for example, --field or --format to handle this it should do the work. For example:
glab issue ls --fields="%issueId\t%title\t%tag\t%creationTime"
glab issue ls --field="%issueId\t%title"
glab issue ls --filed="%issueId\t%title\t%estimatedTime"
glab issue ls --filed="%issueId\t%title\t%estimatedTime\t%url"
or comma separated:
glab issue ls --fields="%issueId,%title,%tags,%creationTime"
glab issue ls --field="%issueId,%title"
glab issue ls --filed="%issueId,%title,%estimatedTime"
glab issue ls --filed="%issueId,%title,%estimatedTime,%url"
More or less the same idea used in docker inspect
Additional context
This could increase the usability a lot. I built a lot of bash and vim functions to process the actual output that could be replaced by this.
I hope you find this useful otherwise no problem, this tools is terrific! ;-)