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

[Feature Request] Programmatic Usage #89

Open
codemaster138 opened this issue May 8, 2021 · 2 comments
Open

[Feature Request] Programmatic Usage #89

codemaster138 opened this issue May 8, 2021 · 2 comments

Comments

@codemaster138
Copy link

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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants