Crates.io | ghlast |
lib.rs | ghlast |
version | 0.1.4 |
source | src |
created_at | 2022-09-16 12:21:30.375896 |
updated_at | 2024-03-30 14:41:58.642474 |
description | Inspects the last release published to a GitHub repository |
homepage | https://github.com/nickjer/ghlast |
repository | https://github.com/nickjer/ghlast |
max_upload_size | |
id | 667326 |
size | 346,242 |
A command line interface (CLI) used to inspect the last release published to a GitHub repository.
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.
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
Install using cargo:
cargo install ghlast
An alternative method is to download and run the pre-compiled binaries: