cli / go-gh

A Go module for interacting with gh and the GitHub API from the command line.
https://pkg.go.dev/github.com/cli/go-gh/v2
MIT License
322 stars 45 forks source link

Add hyperlink template function #72

Closed heaths closed 1 year ago

heaths commented 1 year ago

Relates to cli/cli#6179

heaths commented 1 year ago

@mislav I made the changes you requested, but I think it's least worth considering (perhaps not for this PR) whether more should be done in the template functions like they were in cli/cli. Now every script - every invocation - has to vary the template based on expected output. Maybe that actually ends up being rare enough since the target of gh is probably often known (you're either scripting with it for data, or displaying results directly as part of a script or command line invocation).