The GitHub development team has released version 2.20 of its command line tool. The new release of the GitHub CLI offers developers more support when searching and finding extensions. The update of the Go library go-gh to version 1.0 should accelerate the creation of new extensions.

Since the release of the second major version for the Command Line Interface (CLI), the GitHub team has been trying to make working with extensions as easy and versatile as possible, from creating them to using them in projects. GitHub CLI 2.20 introduces two new commands so that developers can keep track of the large number of extensions that are now available and find the right extensions more quickly: gh extension browse and gh extension search.



The two commands “gh extension browse” and “gh extension search” facilitate the search for extensions.

The command gh extension browse is designed as an interactive terminal user interface (TUI) and allows you to list all the extensions available for installation directly in the terminal – sorted by star rating. About the button / a filter box can be opened to adjust the search more specifically. Selected and marked extensions can then be sent directly via i install (or with r uninstall).

Supplement to the command gh extension browse can be used to search gh extension search automate. With flags like --owner, --license or --sort For example, the search results can be narrowed down by author and license or sorted in the order of the last update.

GitHub CLI is written in Go. To make it easier for developers to create their own extensions, the GitHub team created the Go library go-gh, which is currently available in version 1.0. The library contains parts of the code from the command line tool that can be used directly for writing extensions. This explains how go-gh and its features can be used in detail Example of an extension (gh-ask), which can be used to search threads in GitHub Discussions. The example covers the most important steps from with gh ext create created boilerplate code to the output formats such as JSON. With the action gh-extension-precompile Finally, executables for installing the extension can be created from the Go code – for Linux, Windows, macOS, FreeBSD and Android.

Further information on the innovations in GitHub CLI 2.20 can be found in the blog post on GitHub such as in the changelog in the repository of the command line tool.


(map)

To home page

California18

Welcome to California18, your number one source for Breaking News from the World. We’re dedicated to giving you the very best of News.

Leave a Reply