Home / Companies / GitHub / Blog / Post Details
Content Deep Dive

New GitHub CLI extension tools

Blog post from GitHub

Post Details
Company
Date Published
Author
Nate Smith
Word Count
2,847
Language
English
Hacker News Points
-
Summary

The GitHub CLI team has introduced several enhancements to improve the experience for extension developers and users, including the release of go-gh 1.0, a Go library for extension authors, and the gh/pre-extension-precompile action for automated compilation and release of extensions. The 2.20.0 release introduced new commands like gh ext browse and gh ext search, facilitating easier discovery and installation of extensions. The former offers an interactive Terminal User Interface for exploring extensions, while the latter is designed for scripting and automation. A detailed guide on developing a CLI extension using go-gh is provided, illustrating the process from creating a basic extension to integrating features such as repository selection, API interaction, and output formatting. The blog also discusses releasing extensions using the cli/gh-extension-precompile action, which compiles executables for various platforms. Future plans for the GitHub CLI include more accessible browsing options, support for nested extensions, and improved documentation and flexibility of the precompilation action. The team encourages user feedback and contributions to further enhance the CLI's capabilities.