5 releases

0.1.4 Mar 30, 2024
0.1.3 Mar 23, 2024
0.1.2 Mar 23, 2024
0.1.1 Jul 16, 2023
0.1.0 Sep 16, 2022

#185 in Development tools

Download history 9/week @ 2024-02-21 13/week @ 2024-02-28 230/week @ 2024-03-20 162/week @ 2024-03-27 49/week @ 2024-04-03

441 downloads per month

MIT license

300KB
92 lines

ghlast

Latest Version Downloads License Continuous Integration Status

A command line interface (CLI) used to inspect the last release published to a GitHub repository.

Screenshot of ghlast inspecting ripgrep

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

I personally use it to get the latest and greatest of a binary...

#!/usr/bin/env bash

URL="$(ghlast neovim neovim --output assets | grep 'appimage$')"
curl "${URL}" --location --silent --output ~/bin/nvim && \
  chmod 755 ~/bin/nvim

Installation

Install using cargo:

cargo install ghlast

Pre-compiled Binaries

An alternative method is to download and run the pre-compiled binaries:

https://github.com/nickjer/ghlast/releases

Dependencies

~9–19MB
~324K SLoC