Skip to content

Conversation

@heaths
Copy link
Contributor

@heaths heaths commented Jan 19, 2025

Resolves #8415

It would be a lot cleaner to handle the filtering and template execution in the same place rather than shuffling around bytes which, due to how the `api` command was written, made it unintuitive and harder to maintain.
@heaths
Copy link
Contributor Author

heaths commented Jan 19, 2025

This has a dependency on cli/go-gh#177 getting merged first. I think this is a much cleaner design and allows the code to be colocated and easier to maintain. I think it also adds value to extension developers since you can do more with jq functions in terms of sorting, reformatting, and other filtering before applying Go's rather simplistic - not meant negatively - templating engine.

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

Successfully merging this pull request may close these issues.

Support getting both JSON and template output

1 participant