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

Flag for printing only GraphQL information #90

Closed epanipinto closed 1 year ago

epanipinto commented 1 year ago

This project has made my work significantly easier, thank you!

I am finding that often I am wanting to print only the GraphQL query & GraphQL variables but not the HTTP information. I know you can set os.Setenv("GH_DEBUG", "api") to print the GraphQL & HTTP information. I am finding that when I am developing my GraphQL struct that it would be useful to reduce some of the noise and only print out the GraphQL information.

mislav commented 1 year ago

@epanipinto Thanks for the feature request.

When you say "only GraphQL information", do you mean to avoid printing HTTP traffic like headers? What about the JSON response to a GraphQL query?

samcoe commented 1 year ago

Closing this as stale as original author as not elaborated on feature request.