Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickjer/ghlast
Inspects the last release published to a GitHub repository
https://github.com/nickjer/ghlast
Last synced: about 2 months ago
JSON representation
Inspects the last release published to a GitHub repository
- Host: GitHub
- URL: https://github.com/nickjer/ghlast
- Owner: nickjer
- License: mit
- Created: 2022-08-05T20:04:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T14:37:13.000Z (9 months ago)
- Last Synced: 2024-11-07T23:43:29.387Z (2 months ago)
- Language: Rust
- Size: 441 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ghlast
[![Latest Version](https://img.shields.io/crates/v/ghlast.svg)](https://crates.io/crates/ghlast)
[![Downloads](https://img.shields.io/github/downloads/nickjer/ghlast/total.svg)](https://github.com/nickjer/ghlast/releases)
[![License](https://img.shields.io/github/license/nickjer/ghlast.svg)](https://github.com/nickjer/ghlast)
[![Continuous Integration Status](https://github.com/nickjer/ghlast/workflows/Continuous%20integration/badge.svg)](https://github.com/nickjer/ghlast/actions)A command line interface (CLI) used to inspect the last release published to a
GitHub repository.![Screenshot of ghlast inspecting ripgrep](media/screenshot.png)
## Why
One benefit this has over just bookmarking a URL to
`/owner/name/releases/latest/download/asset-name.zip` is that this CLI will
pick up pre-releases.For instance at the time of writing this the [Neovim] project has a v0.8.0
prerelease build that they tag as `nightly`. If you use the static URL above
you will instead get the stable v0.7.2 build instead.![Screenshot of ghlast inspecting neovim](media/neovim-screenshot.png)
I personally use it to get the latest and greatest of a binary...
```bash
#!/usr/bin/env bashURL="$(ghlast neovim neovim --output assets | grep 'appimage$')"
curl "${URL}" --location --silent --output ~/bin/nvim && \
chmod 755 ~/bin/nvim
```[Neovim]: https://github.com/neovim/neovim
## Installation
Install using [cargo]:
```shell
cargo install ghlast
```[cargo]: https://doc.rust-lang.org/cargo/
## Pre-compiled Binaries
An alternative method is to download and run the pre-compiled binaries:
https://github.com/nickjer/ghlast/releases