dspinellis / git-issue

Git-based decentralized issue management
GNU General Public License v3.0
776 stars 66 forks source link

[Feature Request] Programmatic Usage #89

Open codemaster138 opened 3 years ago

codemaster138 commented 3 years ago

Hi everyone! git-issue is a great tool, and I've been using it for quite a while now. I decided to build a desktop app (I'll be releasing it soon) that makes it a bit easier to manage those issues.

I found it very hard to do certain things, like read only the content, only the tags or only the author from an issue.

I propose a command called, for example, data, that lets a user read only specific data or metadata from an issue. For example git issue data <hash> --author would simply print the author to the command line, git issue data <hash> --tags would simply print the tags of an issue to the command line, git issue data <hash> --body prints the body, etc. This would be incredibly useful as it would save me (and hopefully others too) all the work of writing regexes to parse the output of git issue show <hash> into something programmatically meaningfull.

dspinellis commented 3 years ago

Looking forward to see your desktop app! Regarding the proposed command, I was thinking that you could achieve what you're after with a command like git issue show -l formatstring. Would you like to submit a pull request for such an extension?

codemaster138 commented 3 years ago

@dspinellis I'm not really an expert on bash scripting, but I can look into it