{"repo":"cli/go-gh","free":true,"listed":false,"github":"https://github.com/cli/go-gh","clone":"git clone https://github.com/cli/go-gh.git","description":"A Go module for interacting with gh and the GitHub API from the command line.","language":"Go","stars":433,"topics":["golang","cli","github"],"license":"MIT","category":"cli-tools","readme_excerpt":"Go library for the GitHub CLI go-gh is a collection of Go modules to make authoring [GitHub CLI extensions][extensions] easier. Modules from this library will obey GitHub CLI conventions by default: - repository.Current() respects the value of the GH REPO environment variable and reads from git remote configuration as fallback. - GitHub API requests will be authenticated using the same mechanism as gh , i.e. using the values of GH TOKEN and GH HOST environment variables and falling back to the user's stored OAuth token. - Terminal capabilities are determined by taking environment variables GH FORCE TTY , NO COLOR , CLICOLOR , etc. into account. - Generating table or Go template output uses the same engine as gh. - The browser module activates the user's preferred web browser. Usage See the full go-gh reference documentation for more information See [examples][] for more demonstrations of usage. Contributing If anything feels off, or if you feel that some functionality is missing, please check out our [contributing docs][contributing]. There you will find instructions for sharing your feedback and for submitting pull requests to the project. Thank you! [extensions]: https://docs.github.com/en/github-cli/github-cli/creating-github-cli-extensions [examples]: ./example gh test.go [contributing]: ./.github/CONTRIBUTING.md","default_branch":null,"files":null,"tree":[],"storefront":"/r/cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cli/go-gh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}